Skip to content

Commit

Permalink
test: Fix broken document.createElement calls in log-window-tests.js
Browse files Browse the repository at this point in the history
I broke these tests in a refactor in 86c72c0, where I changed which
"document" a log window referred to.  This does not appear to have had
any effect on a production environment.

Change-Id: Icd4fedf9239192aa979d22a721fc6965347a101f
  • Loading branch information
joeyparrish committed Nov 15, 2021
1 parent e746391 commit 7c08d75
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/log-window-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ describe('Log window', () => {

beforeAll(() => {
mockDocument = document.createElement('div');
mockDocument.createElement = (name) => document.createElement(name);
document.body.appendChild(mockDocument);

mockWindow = {
Expand Down

0 comments on commit 7c08d75

Please sign in to comment.