diff --git a/packages/snaps-execution-environments/src/common/endowments/timeout.ava.test.ts b/packages/snaps-execution-environments/src/common/endowments/timeout.ava.test.ts index 73a372d5f1..3f1f33665a 100644 --- a/packages/snaps-execution-environments/src/common/endowments/timeout.ava.test.ts +++ b/packages/snaps-execution-environments/src/common/endowments/timeout.ava.test.ts @@ -2,12 +2,12 @@ import test from 'ava'; import timeout from './timeout'; -test('modifying handler should not be allowed and error should be thrown', (tec) => { +test('modifying handler should not be allowed and error should be thrown', (expect) => { const { setTimeout: _setTimeout } = timeout.factory(); const handle = _setTimeout((param: unknown) => param, 100); - tec.throws( + expect.throws( () => { // @ts-expect-error Ignore because this is supposed to cause an error handle.whatever = 'something';