From 8d6090e7ed8641fdbc6fa97c21e2177342016215 Mon Sep 17 00:00:00 2001 From: Chris Thielen Date: Tue, 16 Aug 2016 16:36:02 -0500 Subject: [PATCH] test(resolve): Fix "red code" --- test/core/resolveSpec.ts | 6 ------ test/ng1/resolveSpec.ts | 8 +++++--- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/test/core/resolveSpec.ts b/test/core/resolveSpec.ts index 952b99a86..e57556fdd 100644 --- a/test/core/resolveSpec.ts +++ b/test/core/resolveSpec.ts @@ -348,11 +348,5 @@ describe('Resolvables system:', function () { }).then(done); }); }); - - // TODO: test injection of annotated functions - // TODO: test injection of services - // TODO: test injection of other locals - // TODO: Implement and test injection to onEnter/Exit - // TODO: Implement and test injection into controllers }); diff --git a/test/ng1/resolveSpec.ts b/test/ng1/resolveSpec.ts index f559d8526..a1d84a6f3 100644 --- a/test/ng1/resolveSpec.ts +++ b/test/ng1/resolveSpec.ts @@ -1,4 +1,6 @@ import "../testUtilsNg1.js"; +declare var resolvedValue, resolvedError, caught; + import "../matchers.ts"; import { @@ -190,9 +192,9 @@ describe("$resolve", function () { }); it("resolves dependencies between functions that return promises", inject(function ($q) { - var ad = $q.defer(), a = jasmine.createSpy('a').and.returnValue(ad.promise); - var bd = $q.defer(), b = jasmine.createSpy('b').and.returnValue(bd.promise); - var cd = $q.defer(), c = jasmine.createSpy('c').and.returnValue(cd.promise); + var ad = $q.defer(), a = jasmine.createSpy('a'); a.and.returnValue(ad.promise); + var bd = $q.defer(), b = jasmine.createSpy('b'); b.and.returnValue(bd.promise); + var cd = $q.defer(), c = jasmine.createSpy('c'); c.and.returnValue(cd.promise); var r = $r.resolve({ a: [ 'b', 'c', a ], b: [ 'c', b ], c: [ c ] }); tick();