Skip to content

Commit 0dd8387

Browse files
author
cloudhead
committed
tests.
1 parent cb3ab7e commit 0dd8387

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

test/addvow-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ var promiser = function (val) {
1414
}
1515
};
1616

17-
vows.tell("Vows:unit").addVows(function () {
17+
vows.describe("Vows/unit").addVows(function () {
1818
promiser("hello world")().addVow(function (val) {
1919
assert.equal(val, "hello world");
2020
}, "addVow()");

test/vows-test.js

+11
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,17 @@ vows.describe("Vows").addVows({
136136
}
137137
}).addVows({
138138
"A 2nd test suite": {
139+
topic: function () {
140+
var p = new(events.EventEmitter);
141+
setTimeout(function () {
142+
p.emit("success");
143+
}, 100);
144+
return p;
145+
},
139146
"should run after the first": function () {}
140147
}
148+
}).addVows({
149+
"A 3rd test suite": {
150+
"should run last": function () {}
151+
}
141152
});

0 commit comments

Comments
 (0)