Open jfirebaugh opened 9 years ago
someone else mentioned this before but I never use nested tests personally
It's pretty common to approximate a BDD syntax like mocha:
test('Array', function(t){
t.test('#indexOf()', function(t){
t.test('returns -1 when the value is not present', function(){
t.equal(-1, [1,2,3].indexOf(5));
t.equal(-1, [1,2,3].indexOf(0));
t.end();
})
})
})
yeah... I just do like test('index of returns #@$!%
. u can send a PR for this if you'd like to have this feature
test.js:
I expect
-g b
to run this test, but: