Skip to content
This repository has been archived by the owner on Dec 7, 2020. It is now read-only.

Commit

Permalink
contrib: patching test for 'runner(..)', makes sure we can close #27
Browse files Browse the repository at this point in the history
…now that #26 is fixed
  • Loading branch information
getify committed Feb 7, 2014
1 parent 74e288f commit 205125f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion contrib/contrib-wrapper.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*! asynquence-contrib
v0.1.6-a (c) Kyle Simpson
v0.1.6-b (c) Kyle Simpson
MIT License: http://getify.mit-license.org
*/

Expand Down
12 changes: 9 additions & 3 deletions contrib/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -1040,18 +1040,24 @@
return x;
}

function twiceValues(x) {
return ASQ.messages(x,x);
}

ASQ(2)
.runner(
ASQ.iterable()
.then(doubleSeq)
.then(doublePromise)
.then(doubleSeq)
.then(doublePromise)
.then(twiceValues) // return the value itself, twice
)
.val(function(msg){
.val(function(msg1,msg2){
if (!(
arguments.length === 1 &&
msg === 32
arguments.length === 2 &&
msg1 === 32 &&
msg2 === 32
)) {
var args = ARRAY_SLICE.call(arguments);
args.unshift(testDone,label);
Expand Down

0 comments on commit 205125f

Please sign in to comment.