From da3fcf9a8501354f5564c0965e18a06b75521674 Mon Sep 17 00:00:00 2001 From: Panu Horsmalahti Date: Sat, 29 Mar 2014 12:45:09 +0200 Subject: [PATCH] Update Q-tests.ts Add tests for Q.nfapply and Q.nfcall. --- q/Q-tests.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/q/Q-tests.ts b/q/Q-tests.ts index 22f33506e..6b69fb228 100644 --- a/q/Q-tests.ts +++ b/q/Q-tests.ts @@ -109,3 +109,9 @@ Q.allSettled([saveToDisk(), saveToCloud()]).spread(function (disk, cloud) { } }).done(); +var nodeStyle = (input: string, cb: Function) => { + cb(null, input); +}; + +Q.nfapply(nodeStyle, ["foo"]).done((result: string) => {}); +Q.nfcall(nodeStyle, "foo").done((result: string) => {});