diff --git a/test/ng/qSpec.js b/test/ng/qSpec.js index 28be0405433c..73579137fe65 100644 --- a/test/ng/qSpec.js +++ b/test/ng/qSpec.js @@ -1260,7 +1260,7 @@ describe('q', function() { evilPromise.success = success; evilPromise.error = error; } - } + }; q.all([promise, evilPromise]).then(success(), error()); expect(logStr()).toBe(''); @@ -1319,7 +1319,7 @@ describe('q', function() { evilPromise.success = success; evilPromise.error = error; } - } + }; q.all({good: promise, evil: evilPromise}).then(success(), error()); expect(logStr()).toBe('');