Skip to content

Commit

Permalink
update test;
Browse files Browse the repository at this point in the history
  • Loading branch information
switer committed Dec 26, 2013
1 parent 9923519 commit c1c5e57
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ Chain(function (chain, msg) {
console.log('Chain step 3');

console.log(param.name); // Next step
chain.end({name: 'switer.github.io'});
chain.next({name: 'switer.github.io'});
})
.then(function (chain) {
//will be skiped

console.log('Chain step 4');
chain.end();
})
.filter(function (filter, param) {
console.log('filter 1', param);
Expand All @@ -44,6 +45,10 @@ Chain(function (chain, msg) {
.before(function (chain, param) {
console.log('1----In each chain-node before handlers');
console.log('=======================================');
if (param && param.name == 'guankaishe') {
param.name = '';
chain.next(param);
}
})
.final(function (chain) {
console.log('Chain step final');
Expand Down

0 comments on commit c1c5e57

Please sign in to comment.