Created
July 4, 2012 18:05
-
-
Save JerrySievert/3048662 to your computer and use it in GitHub Desktop.
vows alternative syntax
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// vows requires access to the module in order to create exports | |
vows(module, { | |
'vows/subject test 1': { | |
'Should add and execute the first test': { | |
topic: function() { | |
return true; | |
}, | |
'Validate the first time': function (testValue) { | |
assert.ok(testValue); | |
}, | |
'Validate the second time': function (testValue) { | |
assert.ok(testValue); | |
} | |
}, | |
'Should add and execute the second test': { | |
topic: function() { | |
return true; | |
}, | |
'Validate the first time': function (testValue) { | |
assert.ok(testValue); | |
}, | |
'Validate the second time': function (testValue) { | |
assert.ok(testValue); | |
} | |
} | |
}, | |
'vows/subject test 2': { | |
'Should add and execute the first test': { | |
topic: function() { | |
return true; | |
}, | |
'Validate the first time': function (testValue) { | |
assert.ok(testValue); | |
}, | |
'Validate the second time': function (testValue) { | |
assert.ok(testValue); | |
} | |
}, | |
'Should add and execute the second test': { | |
topic: function() { | |
return true; | |
}, | |
'Validate the first time': function (testValue) { | |
assert.ok(testValue); | |
}, | |
'Validate the second time': function (testValue) { | |
assert.ok(testValue); | |
} | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
waiting for a full refactor of the test runner to eliminate the need for module.