diff --git a/exercises/03-Inline-Styles/tests.js b/exercises/03-Inline-Styles/tests.js index 8192affe..0e37fc09 100644 --- a/exercises/03-Inline-Styles/tests.js +++ b/exercises/03-Inline-Styles/tests.js @@ -1,6 +1,8 @@ -const fs=require("fs"); -const path=require("path"); -const html=fs.readFileSync(path.resolve(__dirname, "./index.html"), "utf8"); + +const fs = require("fs"); +const path = require("path"); +const html = fs.readFileSync(path.resolve(__dirname, "./index.html"), "utf8"); + jest.dontMock("fs"); @@ -12,6 +14,7 @@ describe("The Table tag should contain inline style background: green", function afterEach(() => { jest.resetModules(); }); + it("You should not change the existing head tag elements", function () { let head = document.querySelector('head'); let meta = head.querySelector("meta") @@ -19,6 +22,7 @@ describe("The Table tag should contain inline style background: green", function expect(meta).toBe(null) expect(title).toBe('03 Inline Styles') + }) it("The background should be green", function() {