chore(lint): enable semicolon and variable-name tslint checks

This commit is contained in:
Alex Eagle
2016-05-26 13:33:53 -07:00
parent 9096481744
commit ef0c32512c
13 changed files with 30 additions and 22 deletions

View File

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

View File

@ -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 = []; }

View File

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