[Pkg-javascript-commits] [node-tap] 81/186: Fix regression in legacy tests around anonymous functions

Bastien Roucariès rouca at moszumanska.debian.org
Fri Dec 1 16:40:46 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 8cfd0f58c0cb3d6abd3275661f9c53259ccd4cad
Author: isaacs <i at izs.me>
Date:   Fri Nov 10 12:06:58 2017 -0800

    Fix regression in legacy tests around anonymous functions
---
 test/test-args.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/test/test-args.js b/test/test-args.js
index bcf5d55..456a5c5 100644
--- a/test/test-args.js
+++ b/test/test-args.js
@@ -30,14 +30,14 @@ function c (obj, props) {
 
 runTest(['name', cobj(), fn], c(cobj(), {name: 'name', cb: fn}))
 runTest(['name', fn], { name: 'name', cb: fn })
-runTest([cobj(), fn], c(cobj(), { name: /\(unnamed test\)|fn/, cb: fn }))
+runTest([cobj(), fn], c(cobj(), { name: /^(fn)?$/, cb: fn }))
 runTest([cobj(), namedFunction], c(cobj(), { name: 'namedFunction', cb: namedFunction }))
 runTest(['name', cobj()], c(cobjTodo(), { name: 'name' }))
 runTest(['name'], { name: 'name', todo: true })
-runTest([cobj()], c(cobjTodo(), { name: /\(unnamed test\)|fn/ }))
-runTest([fn], {name: /\(unnamed test\)|fn/, cb: fn})
+runTest([cobj()], c(cobjTodo(), { name: /^(fn)?$/ }))
+runTest([fn], {name: /^(fn)?$/, cb: fn})
 runTest([namedFunction], { name: 'namedFunction', cb: namedFunction })
-runTest([], { name: /\(unnamed test\)|fn/, todo: true })
+runTest([], { name: /^(fn)?$/, todo: true })
 
 var dn = 'defaultName'
 var _ = undefined

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