Skip to content

Commit 12303c9

Browse files
authored
Merge pull request 4GeeksAcademy#26 from pbullor/master
Se soluciona error por esperar archivo styles
2 parents bf98efb + a44ecf5 commit 12303c9

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

exercises/03-Inline-Styles/tests.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
const fs=require("fs");
2-
const path=require("path");
3-
const html=fs.readFileSync(path.resolve(__dirname, "./index.html"), "utf8");
1+
2+
const fs = require("fs");
3+
const path = require("path");
4+
const html = fs.readFileSync(path.resolve(__dirname, "./index.html"), "utf8");
5+
46

57
jest.dontMock("fs");
68

@@ -12,13 +14,15 @@ describe("The Table tag should contain inline style background: green", function
1214
afterEach(() => {
1315
jest.resetModules();
1416
});
17+
1518
it("You should not change the existing head tag elements", function () {
1619
let head = document.querySelector('head');
1720
let meta = head.querySelector("meta")
1821
let title = head.querySelector('title').innerHTML
1922

2023
expect(meta).toBe(null)
2124
expect(title).toBe('03 Inline Styles')
25+
2226
})
2327

2428
it("The background should be green", function() {

0 commit comments

Comments
 (0)