Skip to content

Commit 0c487fc

Browse files
committed
give failing tests a name
1 parent e62eb93 commit 0c487fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/test-helper.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ assert.isNull = function(item, message) {
142142

143143
test = function(name, action) {
144144
test.testCount ++;
145-
var result = action();
145+
test[name] = action;
146+
var result = test[name]();
146147
if(result === false) {
147148
process.stdout.write('?');
148149
}else{

0 commit comments

Comments
 (0)