Match tslint rules (#264)
This commit is contained in:
parent
6183a30a52
commit
2730e04a05
|
@ -17,7 +17,7 @@ function expectIdentity(cipher: CipherView) {
|
|||
username: 'userNam3',
|
||||
company: 'bitwarden',
|
||||
phone: '8005555555',
|
||||
email: 'email@bitwarden.com'
|
||||
email: 'email@bitwarden.com',
|
||||
}));
|
||||
|
||||
expect(cipher.notes).toContain('address\ncity state zip\nUnited States');
|
||||
|
|
|
@ -18,15 +18,15 @@ function expectIdentity(cipher: CipherView) {
|
|||
username: 'userNam3',
|
||||
company: 'bitwarden',
|
||||
phone: '8005555555',
|
||||
email: 'email@bitwarden.com'
|
||||
email: 'email@bitwarden.com',
|
||||
}));
|
||||
|
||||
expect(cipher.fields).toEqual(jasmine.arrayContaining([
|
||||
Object.assign(new FieldView(), {
|
||||
type: FieldType.Text,
|
||||
name: 'address',
|
||||
value: 'address city state zip us'
|
||||
})
|
||||
value: 'address city state zip us',
|
||||
}),
|
||||
]));
|
||||
}
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ export function interceptConsole(interceptions: any): object {
|
|||
// tslint:disable-next-line
|
||||
error: function () {
|
||||
interceptions.error = arguments;
|
||||
}
|
||||
},
|
||||
};
|
||||
return interceptions;
|
||||
}
|
||||
|
|
|
@ -20,13 +20,13 @@ import { BuildTestObject, GetUniqueString } from '../../utils';
|
|||
const UserCipherViews = [
|
||||
generateCipherView(false),
|
||||
generateCipherView(false),
|
||||
generateCipherView(true)
|
||||
generateCipherView(true),
|
||||
];
|
||||
|
||||
const UserCipherDomains = [
|
||||
generateCipherDomain(false),
|
||||
generateCipherDomain(false),
|
||||
generateCipherDomain(true)
|
||||
generateCipherDomain(true),
|
||||
];
|
||||
|
||||
function generateCipherView(deleted: boolean) {
|
||||
|
|
|
@ -145,7 +145,7 @@ export class SsoComponent {
|
|||
this.router.navigate([this.twoFactorRoute], {
|
||||
queryParams: {
|
||||
identifier: orgIdFromState,
|
||||
sso: 'true'
|
||||
sso: 'true',
|
||||
},
|
||||
});
|
||||
}
|
||||
|
|
12
tslint.json
12
tslint.json
|
@ -59,6 +59,18 @@
|
|||
"semicolon": [
|
||||
true,
|
||||
"always"
|
||||
],
|
||||
"trailing-comma": [
|
||||
true,
|
||||
{
|
||||
"multiline": {
|
||||
"objects": "always",
|
||||
"arrays": "always",
|
||||
"functions": "ignore",
|
||||
"typeLiterals": "ignore"
|
||||
},
|
||||
"singleline": "never"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue