Skip to content

Commit 72fd598

Browse files
committed
fix: lint
1 parent fe27433 commit 72fd598

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/client/handlers/vaults.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2399,7 +2399,11 @@ describe('vaultsSecretsRemove', () => {
23992399
await writer.close();
24002400
for await (const data of response.readable) {
24012401
expect(data.type).toStrictEqual('error');
2402-
console.log(data)
2402+
// TS cannot properly evaluate a type as nested as this, so we use the
2403+
// as keyword to help it. Inside this block, the type of data is 'error'.
2404+
const error = data as ErrorMessage;
2405+
// The error code should be an invalid operation
2406+
expect(error.code).toStrictEqual('EINVAL');
24032407
}
24042408
// Check
24052409
await vaultManager.withVaults([vaultId], async (vault) => {

0 commit comments

Comments
 (0)