We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c18b66 commit 3030206Copy full SHA for 3030206
test/vows-test.js
@@ -243,6 +243,25 @@ vows.describe("Vows").addBatch({
243
"should work the same as returning a value": function (res) {
244
assert.equal(res, 'hello');
245
}
246
+ },
247
+ "with multiple arguments": {
248
+ topic: function () {
249
+ this.callback(null, 1, 2, 3);
250
251
+ "should pass them to the vow": function (e, a, b, c) {
252
+ assert.strictEqual(e, null);
253
+ assert.strictEqual(a, 1);
254
+ assert.strictEqual(b, 2);
255
+ assert.strictEqual(c, 3);
256
257
+ "and a sub-topic": {
258
+ topic: function (a, b, c) {
259
+ return [a, b, c];
260
261
+ "should receive them too": function (val) {
262
+ assert.deepEqual(val, [1, 2, 3]);
263
+ }
264
265
266
267
}).addBatch({
0 commit comments