Skip to content

Instantly share code, notes, and snippets.

@JerrySievert
Created July 4, 2012 18:05
Show Gist options
  • Save JerrySievert/3048662 to your computer and use it in GitHub Desktop.
Save JerrySievert/3048662 to your computer and use it in GitHub Desktop.
vows alternative syntax
// 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);
}
}
}
});
@JerrySievert
Copy link
Author

waiting for a full refactor of the test runner to eliminate the need for module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment