From 618a3c5a2c7e15efc7957dcb8c5da62526681dbc Mon Sep 17 00:00:00 2001 From: "FiveFilters.org" Date: Wed, 11 Aug 2021 23:46:14 +0200 Subject: Update test pages to use HTML5PHP output as expected output --- test/test-pages/001/expected.html | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'test/test-pages/001') diff --git a/test/test-pages/001/expected.html b/test/test-pages/001/expected.html index e05810f..0998436 100644 --- a/test/test-pages/001/expected.html +++ b/test/test-pages/001/expected.html @@ -1,4 +1,5 @@ -

So finally you're testing your frontend JavaScript code? Great! The more you +

+

So finally you're testing your frontend JavaScript code? Great! The more you write tests, the more confident you are with your code… but how much precisely? That's where code coverage might help. @@ -15,9 +16,9 @@ help. actually works…

Drinking game for web devs: -

(1) Think of a noun -

(2) Google "<noun>.js" -

(3) If a library with that name exists - drink

— Shay Friedman (@ironshay) +
(1) Think of a noun +
(2) Google "<noun>.js" +
(3) If a library with that name exists - drink

— Shay Friedman (@ironshay) August 22, 2013

Blanket.js is an easy to install, easy to configure, @@ -105,13 +106,16 @@ describe("Cow", function() {

Notes:

-
  • Notice the data-cover attribute we added to the script tag +
      +
    • Notice the data-cover attribute we added to the script tag loading the source of our library;
    • The HTML test file must be served over HTTP for the adapter to be loaded.
    • -

    Running the tests now gives us something like this:

    +
+

Running the tests now gives us something like this:

- screenshot

+ screenshot +

As you can see, the report at the bottom highlights that we haven't actually tested the case where an error is raised in case a target name is missing. We've been informed of that, nothing more, nothing less. We simply know -- cgit v1.2.3