arch-orchestrator
Advanced tools
Comparing version 1.4.2 to 1.4.3
@@ -67,3 +67,4 @@ 'use strict'; | ||
if (metadata.args) { | ||
args = metadata.args; | ||
args = metadata.args.slice(); | ||
metadata.args = null; | ||
} else { | ||
@@ -70,0 +71,0 @@ args = Array.prototype.slice.apply(arguments); |
{ | ||
"name": "arch-orchestrator", | ||
"version": "1.4.2", | ||
"version": "1.4.3", | ||
"description": "Orchestrator for large node.js applications", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -25,3 +25,3 @@ 'use strict'; | ||
function fn4(arg1, arg2) { | ||
return arg1 + arg2 + 10;1 | ||
return arg1 + arg2 + 10; | ||
} | ||
@@ -315,2 +315,17 @@ | ||
it('should not cache results of previous calls', function () { | ||
fn = orchestrator() | ||
.setNext(fn1).resultTo(fn4) | ||
.setNext(fn2) | ||
.setNext(fn3).resultTo(fn4) | ||
.setNext(fn4) | ||
.end(); | ||
var res = fn(10); | ||
res.should.be.exactly(730); | ||
res = fn(20); | ||
res.should.be.exactly(750); | ||
}); | ||
it('should be able to prepend arguments which are result of some generator function', function * () { | ||
@@ -317,0 +332,0 @@ fn = orchestrator() |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26477
692