refactor(core): cleanup SpyObject (#12221)
This commit is contained in:

committed by
Tobias Bosch

parent
91dd138fa5
commit
e6e007e2f1
@ -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);
|
||||
|
Reference in New Issue
Block a user