mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +00:00
Match tslint rules (#264)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user