refactor(core): cleanup SpyObject (#12221)

This commit is contained in:
Victor Berchet
2016-10-11 15:44:48 -07:00
committed by Tobias Bosch
parent 91dd138fa5
commit e6e007e2f1
8 changed files with 30 additions and 73 deletions

View File

@ -435,7 +435,7 @@ export function main() {
}
function programResourceLoaderSpy(spy: SpyResourceLoader, results: {[key: string]: string}) {
spy.spy('get').andCallFake((url: string): Promise<any> => {
spy.spy('get').and.callFake((url: string): Promise<any> => {
var result = results[url];
if (result) {
return Promise.resolve(result);