From 26dc6f0ec290d2e5a499372ab0abd5fdbbf57448 Mon Sep 17 00:00:00 2001
From: Andres Rey 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.
@@ -34,7 +34,7 @@ with nodejs.
mocha-blanket.js
As an example, let's reuse the silly Running the tests now gives us something like this:
- Cow
example we used
- in a previous episode:// cow.js
(function(exports) {
"use strict";
@@ -111,7 +111,7 @@ describe("Cow", function() {
be loaded.
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