Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
aryanjassal committed Nov 11, 2024
1 parent fe27433 commit 72fd598
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/client/handlers/vaults.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2399,7 +2399,11 @@ describe('vaultsSecretsRemove', () => {
await writer.close();
for await (const data of response.readable) {
expect(data.type).toStrictEqual('error');
console.log(data)
// TS cannot properly evaluate a type as nested as this, so we use the
// as keyword to help it. Inside this block, the type of data is 'error'.
const error = data as ErrorMessage;
// The error code should be an invalid operation
expect(error.code).toStrictEqual('EINVAL');
}
// Check
await vaultManager.withVaults([vaultId], async (vault) => {
Expand Down

0 comments on commit 72fd598

Please sign in to comment.