[Pkg-javascript-commits] [node-tap] 38/186: test: cast user-supplied message to string

Bastien Roucariès rouca at moszumanska.debian.org
Fri Dec 1 16:40:41 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 64f63de44bbb8f98c15360eb480bf7acbf3b403a
Author: isaacs <i at izs.me>
Date:   Fri Sep 8 09:01:30 2017 -0700

    test: cast user-supplied message to string
---
 lib/test.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/test.js b/lib/test.js
index 6159da0..47c5e18 100644
--- a/lib/test.js
+++ b/lib/test.js
@@ -508,6 +508,7 @@ class Test extends Base {
       extra.diagnostic = true
 
     this.count = n
+    message = message + ''
     const res = { ok: ok, message: message, extra: extra }
     const output = new TestPoint(ok, message, extra)
     // when we jump the queue, skip an extra line

-- 
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