From 3b690b68a6e9d07d51fe06302cf6b58d08db48c2 Mon Sep 17 00:00:00 2001 From: vikerman Date: Wed, 27 Jul 2016 12:03:27 -0700 Subject: [PATCH] fix(testing): Fix error message in test bed The API name in the error message was wrong --- modules/@angular/core/testing/test_bed.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/@angular/core/testing/test_bed.ts b/modules/@angular/core/testing/test_bed.ts index 174ad02fd9..ca117f129a 100644 --- a/modules/@angular/core/testing/test_bed.ts +++ b/modules/@angular/core/testing/test_bed.ts @@ -160,7 +160,7 @@ export class TestBed implements Injector { get(token: any, notFoundValue: any = Injector.THROW_IF_NOT_FOUND) { if (!this._instantiated) { throw new BaseException( - 'Illegal state: The test bed\'s injector has not yet been created. Call initTestNgModule first!'); + 'Illegal state: The test bed\'s injector has not yet been created. Call initTestModule first!'); } if (token === TestBed) { return this; @@ -174,7 +174,7 @@ export class TestBed implements Injector { execute(tokens: any[], fn: Function): any { if (!this._instantiated) { throw new BaseException( - 'Illegal state: The test bed\'s injector has not yet been created. Call initTestNgModule first!'); + 'Illegal state: The test bed\'s injector has not yet been created. Call initTestModule first!'); } var params = tokens.map(t => this.get(t)); return FunctionWrapper.apply(fn, params);