Skip to content

Commit b1b96d4

Browse files
authored
Simplify test restore (#336)
1 parent 7ca810e commit b1b96d4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tst/e2e/ResourceState.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { stub, SinonStub } from 'sinon';
1+
import { stub, restore, SinonStub } from 'sinon';
22
import { describe, it, expect, beforeAll, afterAll, beforeEach } from 'vitest';
33
import {
44
ListResourcesParams,
@@ -55,8 +55,7 @@ describe('ResourceState E2E', () => {
5555
});
5656

5757
afterAll(async () => {
58-
(client.core.awsCredentials.credentialsAvailable as SinonStub).restore();
59-
(client.core.awsCredentials.getIAM as SinonStub).restore();
58+
restore();
6059
await client.close();
6160
});
6261

0 commit comments

Comments
 (0)