Skip to content

Commit 8d6090e

Browse files
test(resolve): Fix "red code"
1 parent 7a9e383 commit 8d6090e

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

test/core/resolveSpec.ts

-6
Original file line numberDiff line numberDiff line change
@@ -348,11 +348,5 @@ describe('Resolvables system:', function () {
348348
}).then(done);
349349
});
350350
});
351-
352-
// TODO: test injection of annotated functions
353-
// TODO: test injection of services
354-
// TODO: test injection of other locals
355-
// TODO: Implement and test injection to onEnter/Exit
356-
// TODO: Implement and test injection into controllers
357351
});
358352

test/ng1/resolveSpec.ts

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import "../testUtilsNg1.js";
2+
declare var resolvedValue, resolvedError, caught;
3+
24
import "../matchers.ts";
35

46
import {
@@ -190,9 +192,9 @@ describe("$resolve", function () {
190192
});
191193

192194
it("resolves dependencies between functions that return promises", inject(function ($q) {
193-
var ad = $q.defer(), a = jasmine.createSpy('a').and.returnValue(ad.promise);
194-
var bd = $q.defer(), b = jasmine.createSpy('b').and.returnValue(bd.promise);
195-
var cd = $q.defer(), c = jasmine.createSpy('c').and.returnValue(cd.promise);
195+
var ad = $q.defer(), a = jasmine.createSpy('a'); a.and.returnValue(ad.promise);
196+
var bd = $q.defer(), b = jasmine.createSpy('b'); b.and.returnValue(bd.promise);
197+
var cd = $q.defer(), c = jasmine.createSpy('c'); c.and.returnValue(cd.promise);
196198

197199
var r = $r.resolve({ a: [ 'b', 'c', a ], b: [ 'c', b ], c: [ c ] });
198200
tick();

0 commit comments

Comments
 (0)