mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Update Q-tests.ts
Add tests for Q.nfapply and Q.nfcall.
This commit is contained in:
@@ -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) => {});
|
||||
|
||||
Reference in New Issue
Block a user