fixing promises a plus test for compatibility with es6 promises

This commit is contained in:
Will Johnston
2016-01-15 12:25:22 -06:00
parent 5bff5f871a
commit 0224e96881
+6 -6
View File
@@ -4,9 +4,9 @@
/// <reference path="../q/Q.d.ts"/>
/// <reference path="../when/when"/>
var thenNum: PromisesAPlus.Thenable<number>;
var thenStr: PromisesAPlus.Thenable<string>;
var thenBool: PromisesAPlus.Thenable<boolean>;
var thenNum: PromisesAPlus.Thenable<number>;
var thenStr: PromisesAPlus.Thenable<string>;
var thenBool: PromisesAPlus.Thenable<boolean>;
var impl: PromisesAPlus.PromiseImpl;
@@ -45,9 +45,9 @@ function testCompatibleWithRxJS() {
}
function testCompatibleWithES6Promises() {
// from spec to ES6
var es6ThenNum: Thenable<number> = thenNum;
var es6ThenStr: Thenable<string> = thenStr;
// define ES6 thenables
var es6ThenNum: Thenable<number>;
var es6ThenStr: Thenable<string>;
// from ES6 to spec
thenNum = es6ThenNum;