Skip to content

Commit

Permalink
Remove the unneeded image mock
Browse files Browse the repository at this point in the history
  • Loading branch information
canova committed Oct 22, 2024
1 parent d3b9734 commit 269d3ff
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/test/components/TabSelectorMenu.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,9 @@ import {
import { storeWithProfile } from '../fixtures/stores';
import { fireFullClick } from '../fixtures/utils';
import { getTabFilter } from '../../selectors/url-state';
import { createImageMock } from '../fixtures/mocks/image';
import { ensureExists } from 'firefox-profiler/utils/flow';

describe('app/TabSelectorMenu', () => {
beforeAll(() => {
const mock = createImageMock();
(window: any).Image = mock.Image;
});

afterAll(() => {
// Let all the async favicons finish creating the images.
requestAnimationFrame(() => {
delete (window: any).Image;
});
});

function setup() {
const { profile, ...extraPageData } = addActiveTabInformationToProfile(
getProfileWithNiceTracks()
Expand Down

0 comments on commit 269d3ff

Please sign in to comment.