Skip to content

Commit 8f04566

Browse files
committed
test: fix seedless-onboarding mock encryptor
1 parent cb2e5c0 commit 8f04566

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/seedless-onboarding-controller/tests/mocks/vaultEncryptor.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export default class MockVaultEncryptor
8686

8787
async keyFromPassword(
8888
password: string,
89-
salt: string = this.DEFAULT_SALT,
89+
salt: string,
9090
exportable: boolean = true,
9191
opts: KeyDerivationOptions = this.DEFAULT_DERIVATION_PARAMS,
9292
) {
@@ -218,4 +218,8 @@ export default class MockVaultEncryptor
218218
const result = await this.decryptWithKey(key, payload);
219219
return result;
220220
}
221+
222+
generateSalt(): string {
223+
return this.DEFAULT_SALT;
224+
}
221225
}

0 commit comments

Comments
 (0)