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:
@@ -79,7 +79,7 @@ export function testFromFile() {
|
||||
}
|
||||
|
||||
export function testFromAssetFileNotFound(done) {
|
||||
let asset = new imageAssetModule.ImageAsset('invalidFile.png');
|
||||
let asset = new imageAssetModule.ImageAsset("invalidFile.png");
|
||||
asset.options = {
|
||||
width: 0,
|
||||
height: 0,
|
||||
@@ -87,7 +87,7 @@ export function testFromAssetFileNotFound(done) {
|
||||
};
|
||||
|
||||
let img = imageSource.fromAsset(asset).then((source) => {
|
||||
done('Should not resolve with invalid file name.');
|
||||
done("Should not resolve with invalid file name.");
|
||||
}, (error) => {
|
||||
TKUnit.assertNotNull(error);
|
||||
done();
|
||||
|
||||
Reference in New Issue
Block a user