Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

use variable for assertion

Craig Taubbe441b35d09d
diff --git a/test/reporters/tap.spec.js b/test/reporters/tap.spec.js
index 1d1305b7..0908f13e 100644
--- a/test/reporters/tap.spec.js
+++ b/test/reporters/tap.spec.js
@@ -35,7 +35,7 @@ describe('TAP reporter', function () {
TAP.call({}, runner);
var expectedArray = [
- '1..10\n'
+ '1..' + expectedTotal+ '\n'
];
process.stdout.write = stdoutWrite;