Skip to content

Se soluciona error por esperar archivo styles #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 11, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions exercises/03-Inline-Styles/tests.js
Original file line number Diff line number Diff line change
@@ -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");

Expand All @@ -12,13 +14,15 @@ 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")
let title = head.querySelector('title').innerHTML

expect(meta).toBe(null)
expect(title).toBe('03 Inline Styles')

})

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