Skip to content

Commit

Permalink
more test clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
BrittanyIRL committed Aug 10, 2020
1 parent 9097fc3 commit fdce647
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ SettingsWrapper.propTypes = {
};

describe('Editor Settings: <Editor Settings />', function () {
it('should render settings page with google analytics and publisher logo sections', function () {
it('should render settings page with google analytics section', function () {
const { getByText, getByRole } = renderWithTheme(
<SettingsWrapper googleAnalyticsId="123-45-98-not-an-id" />
<SettingsWrapper googleAnalyticsId="UA-098909-05" />
);

const googleAnalyticsHeading = getByText(GA_TEXT.SECTION_HEADING);
Expand All @@ -70,7 +70,7 @@ describe('Editor Settings: <Editor Settings />', function () {
const input = getByRole('textbox');
expect(input).toBeDefined();

expect(input.value).toBe('123-45-98-not-an-id');
expect(input.value).toBe('UA-098909-05');

expect(mockFetchSettings).toHaveBeenCalledTimes(1);
});
Expand Down

0 comments on commit fdce647

Please sign in to comment.