From 685c9a65177e12acbb17c76d5f98db7e4c32ec89 Mon Sep 17 00:00:00 2001 From: Pablo Bullor <70356168+pbullor@users.noreply.github.com> Date: Thu, 5 Aug 2021 10:16:54 -0300 Subject: [PATCH] Se soluciona error por esperar archivo styles MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Se quita la validación de que exista el archivo styles.css ya que no es necesario y se quitan validaciones de etiquetas del head que no estaban en el archivo index.html --- exercises/03-Inline-Styles/tests.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/exercises/03-Inline-Styles/tests.js b/exercises/03-Inline-Styles/tests.js index dee4f6fa..27da0c22 100644 --- a/exercises/03-Inline-Styles/tests.js +++ b/exercises/03-Inline-Styles/tests.js @@ -1,7 +1,6 @@ const fs = require("fs"); const path = require("path"); const html = fs.readFileSync(path.resolve(__dirname, "./index.html"), "utf8"); -const css = fs.readFileSync(path.resolve(__dirname, "./styles.css"), "utf8"); jest.dontMock("fs"); @@ -13,18 +12,9 @@ describe("The Table tag should contain inline style background: green", function afterEach(() => { jest.resetModules(); }); - it("The styles.css file should be empty", function() { - expect(css.toString() === "").toBeTruthy(); - }); - it("You should not change the head tag", function () { - let meta1 = document.getElementsByTagName('head')[0].innerHTML.toString().indexOf("-1).toBeFalsy(); })