Skip to content

Commit

Permalink
Add missing DOM mock
Browse files Browse the repository at this point in the history
  • Loading branch information
HalfbyteHeroes committed Sep 5, 2024
1 parent e0a35a7 commit 150bf10
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions spec/components/uicontainer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,20 @@ import { PlayerUtils } from '../../src/ts/playerutils';
import type { UIInstanceManager } from '../../src/ts/uimanager';
import type { TestingPlayerAPI } from '../helper/MockHelper';
import { MockHelper } from '../helper/MockHelper';
import generateDOMMock = MockHelper.generateDOMMock;
import getUiInstanceManagerMock = MockHelper.getUiInstanceManagerMock;
import getPlayerMock = MockHelper.getPlayerMock;

jest.mock('../../src/ts/dom', generateDOMMock);

let playerMock: TestingPlayerAPI;
let uiInstanceManagerMock: UIInstanceManager;

describe('UIContainer', () => {
let uiContainer: UIContainer;
beforeEach(() => {
playerMock = MockHelper.getPlayerMock();
uiInstanceManagerMock = MockHelper.getUiInstanceManagerMock();
playerMock = getPlayerMock();
uiInstanceManagerMock = getUiInstanceManagerMock();
});

describe('release', () => {
Expand Down

0 comments on commit 150bf10

Please sign in to comment.