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