Skip to content

Commit

Permalink
test: use DEFAULT_DERIVATION_PARAMS in mockVault
Browse files Browse the repository at this point in the history
  • Loading branch information
gantunesr authored and owencraston committed Mar 26, 2024
1 parent 291298a commit 3b72a9e
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions app/core/Encryptor/Encryptor.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,12 +159,7 @@ describe('Encryptor', () => {
iv: 'mockedIV',
salt: 'mockedSalt',
lib: 'original',
keyMetadata: {
algorithm: 'PBKDF2',
params: {
iterations: 900000,
},
},
keyMetadata: DEFAULT_DERIVATION_PARAMS,
}),
),
).toBe(true);
Expand Down Expand Up @@ -229,12 +224,7 @@ describe('Encryptor', () => {
iv: 'mockedIV',
salt: 'mockedSalt',
lib: 'original',
keyMetadata: {
algorithm: 'PBKDF2',
params: {
iterations: 900000,
},
},
keyMetadata: DEFAULT_DERIVATION_PARAMS,
};

const updatedVault = await encryptor.updateVault(
Expand Down

0 comments on commit 3b72a9e

Please sign in to comment.