Skip to content

Commit

Permalink
remove unused test renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
Reeywhaar authored and umputun committed Jul 26, 2019
1 parent e1e1fdf commit 82d1969
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions frontend/app/testUtils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,3 @@ beforeEach(() => {
version: 'jest-test',
};
});

export function createDomContainer(setup: (domContainer: HTMLElement) => void): void {
let domContainer: HTMLElement | null = null;
beforeAll(() => {
domContainer = document.createElement('div');
(document.body || document.documentElement).appendChild(domContainer);
setup(domContainer);
});

beforeEach(() => {
domContainer!.innerHTML = '';
});

afterAll(() => {
domContainer!.parentNode!.removeChild(domContainer!);
domContainer = null;
});
}

0 comments on commit 82d1969

Please sign in to comment.