Skip to content

Commit f3a1b99

Browse files
committed
updated test
1 parent f9662e5 commit f3a1b99

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

exercises/01-inline-styles/tests.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
const fs = require('fs');
22
const path = require('path');
3-
const { JSDOM } = require('jsdom');
4-
5-
// Read the HTML file
63
const html = fs.readFileSync(path.resolve(__dirname, './index.html'), 'utf8');
4+
document.documentElement.innerHTML = html.toString();
75

8-
// Set up the DOM environment
9-
const { window } = new JSDOM(html);
10-
const { document } = window;
6+
jest.dontMock('fs');
117

128
// Run the tests
139
test("There should be a table element", () => {

0 commit comments

Comments
 (0)