Skip to content

Commit

Permalink
tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudhead committed May 11, 2010
1 parent cb3ab7e commit 0dd8387
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/addvow-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var promiser = function (val) {
}
};

vows.tell("Vows:unit").addVows(function () {
vows.describe("Vows/unit").addVows(function () {
promiser("hello world")().addVow(function (val) {
assert.equal(val, "hello world");
}, "addVow()");
Expand Down
11 changes: 11 additions & 0 deletions test/vows-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,17 @@ vows.describe("Vows").addVows({
}
}).addVows({
"A 2nd test suite": {
topic: function () {
var p = new(events.EventEmitter);
setTimeout(function () {
p.emit("success");
}, 100);
return p;
},
"should run after the first": function () {}
}
}).addVows({
"A 3rd test suite": {
"should run last": function () {}
}
});

0 comments on commit 0dd8387

Please sign in to comment.