From c85918d0e84747ec5fa5c8d397a1aa2fcfb00306 Mon Sep 17 00:00:00 2001 From: jbblanchet Date: Mon, 24 Nov 2014 18:37:56 -0500 Subject: [PATCH] Add test for new when signature --- q/Q-tests.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/q/Q-tests.ts b/q/Q-tests.ts index 48a3224bc1..9dc49d9792 100644 --- a/q/Q-tests.ts +++ b/q/Q-tests.ts @@ -94,6 +94,7 @@ Q.fbind((dateString?: string) => new Date(dateString), "11/11/1991")().then(d => Q.when(8, num => num + "!"); Q.when(Q(8), num => num + "!").then(str => str.split(',')); +var voidPromise: Q.Promise = Q.when(); declare function saveToDisk(): Q.Promise; declare function saveToCloud(): Q.Promise;