Skip to content

Commit b2116ea

Browse files
committed
clean up sinon after tests
1 parent f0c3b32 commit b2116ea

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

packages/agent/tests/rpc-client.spec.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ describe('RPC Clients', () => {
1414
client = new HttpDwnRpcClient();
1515
});
1616

17+
after(() => {
18+
sinon.restore();
19+
});
20+
1721
it('should retrieve subsequent result from cache', async () => {
1822
// we spy on fetch to see how many times it is called
1923
const fetchSpy = sinon.spy(globalThis, 'fetch');
@@ -55,6 +59,10 @@ describe('RPC Clients', () => {
5559
describe('Web5RpcClient', () => {
5660
let client: Web5RpcClient;
5761

62+
after(() => {
63+
sinon.restore();
64+
});
65+
5866
beforeEach(async () => {
5967
sinon.restore();
6068
client = new Web5RpcClient();

0 commit comments

Comments
 (0)