chore(lint): enable semicolon and variable-name tslint checks
This commit is contained in:
@ -14,12 +14,10 @@
|
||||
* ```
|
||||
*/
|
||||
export function async(fn: Function): Function {
|
||||
return () => {
|
||||
return new Promise<void>((finishCallback, failCallback) => {
|
||||
return () => new Promise<void>((finishCallback, failCallback) => {
|
||||
var AsyncTestZoneSpec = Zone['AsyncTestZoneSpec'];
|
||||
var testZoneSpec = new AsyncTestZoneSpec(finishCallback, failCallback, 'test');
|
||||
var testZone = Zone.current.fork(testZoneSpec);
|
||||
return testZone.run(fn);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -11,7 +11,7 @@ export class Log {
|
||||
fn(value) {
|
||||
return (a1: any = null, a2: any = null, a3: any = null, a4: any = null, a5: any = null) => {
|
||||
this.logItems.push(value);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
clear(): void { this.logItems = []; }
|
||||
|
@ -134,7 +134,7 @@ export function inject(tokens: any[], fn: Function): Function {
|
||||
let completer: AsyncTestCompleter = testInjector.get(AsyncTestCompleter);
|
||||
testInjector.execute(tokens, fn);
|
||||
return completer.promise;
|
||||
}
|
||||
};
|
||||
} else {
|
||||
// Return a synchronous test method with the injected tokens.
|
||||
return () => { return getTestInjector().execute(tokens, fn); };
|
||||
@ -155,7 +155,7 @@ export class InjectSetupWrapper {
|
||||
return () => {
|
||||
this._addProviders();
|
||||
return inject_impl(tokens, fn)();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
/** @Deprecated {use async(withProviders().inject())} */
|
||||
@ -163,7 +163,7 @@ export class InjectSetupWrapper {
|
||||
return () => {
|
||||
this._addProviders();
|
||||
return injectAsync_impl(tokens, fn)();
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user