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