fix(testing): Fix error message in test bed

The API name in the error message was wrong
This commit is contained in:
vikerman 2016-07-27 12:03:27 -07:00 committed by GitHub
parent 43349dd373
commit 3b690b68a6
1 changed files with 2 additions and 2 deletions

View File

@ -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);