[Pkg-javascript-commits] [node-tap] 16/186: TestPoint is a ctor only, not a generator

Bastien Roucariès rouca at moszumanska.debian.org
Fri Dec 1 16:40:39 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-tap.

commit b972b436eb2d5bc557e8e0aef3e09a41d43381b4
Author: isaacs <i at izs.me>
Date:   Sat Aug 12 21:05:46 2017 -0700

    TestPoint is a ctor only, not a generator
---
 test/test-test.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/test/test-test.js b/test/test-test.js
index 93ff899..621c81f 100644
--- a/test/test-test.js
+++ b/test/test-test.js
@@ -137,19 +137,19 @@ t.test('test-point', function (t) {
     new TestPoint(100, 'century!', { flerg: 'blooze' })
   }, new TypeError('ok must be boolean'))
 
-  var tp = TestPoint(true, 'msg', { a: 1 })
+  var tp = new TestPoint(true, 'msg', { a: 1 })
   t.isa(tp, TestPoint)
   t.match(tp, {
     ok: 'ok ',
     message: '- msg\n'
   })
 
-  t.match(TestPoint(true, 'msg', { a: 1, diagnostic: true }), {
+  t.match(new TestPoint(true, 'msg', { a: 1, diagnostic: true }), {
     ok: 'ok ',
     message: ' - msg\n  ---\n  a: 1\n  ...\n\n'
   })
 
-  t.match(TestPoint(true, 'msg', { a: 1, tapChildBuffer: 'subtest output' }), {
+  t.match(new TestPoint(true, 'msg', { a: 1, tapChildBuffer: 'subtest output' }), {
     ok: 'ok ',
     message: ' - msg {\nsubtest output\n}\n\n'
   })

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-tap.git



More information about the Pkg-javascript-commits mailing list