mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore(tslint): update tslint rules and fix errors (#5747)
* chore(tslint): fix tslint config & errors * chore(tslint): enable double quotes, whitespace, and arrow-return-shorthand rules and fix errors
This commit is contained in:
@@ -142,7 +142,7 @@ export function test_setInterval_callbackCalledWithExtraArgs(done) {
|
||||
if (counter === 4) {
|
||||
const end = TKUnit.time();
|
||||
timer.clearInterval(id);
|
||||
done(end - start > 250 ? new Error('setInterval too slow.') : null);
|
||||
done(end - start > 250 ? new Error("setInterval too slow.") : null);
|
||||
}
|
||||
}, 50, rnd);
|
||||
};
|
||||
@@ -156,7 +156,7 @@ export function test_setInterval_callbackShouldBeCleared(done) {
|
||||
// >> (hide)
|
||||
const end = TKUnit.time();
|
||||
timer.clearInterval(id);
|
||||
done(end - start > 150 ? new Error('setInterval too slow.') : null);
|
||||
done(end - start > 150 ? new Error("setInterval too slow.") : null);
|
||||
// << (hide)
|
||||
timer.clearInterval(id);
|
||||
}, 50);
|
||||
|
||||
Reference in New Issue
Block a user