We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb98f18 commit 1935e0bCopy full SHA for 1935e0b
test/spread.js
@@ -33,3 +33,27 @@ exports.testSpreadBoundMethod = function (test) {
33
test.done()
34
}, {scope: 'scope'}, 'c')
35
}
36
+
37
+exports.testAllSynchronization1 = function (test) {
38
+ var order = []
39
+ Q.resolve(true)
40
+ .then(function () {
41
+ var promiseA = Q.fcall(function () {
42
+ order.push('a')
43
+ })
44
+ var promiseB = Q.fcall(function () {
45
+ order.push('b')
46
47
48
+ test.deepEqual([], order)
49
50
+ var promiseAB = Q.all([promiseA, promiseB])
51
52
53
+ return [promiseA, promiseB]
54
55
+ .then(function (results) {
56
+ test.deepEqual(['a', 'b'], order)
57
+ test.done()
58
59
+}
0 commit comments