From 06c17042ee39340a92f05fa311933428aa1607d7 Mon Sep 17 00:00:00 2001 From: david0xd Date: Wed, 7 Dec 2022 11:51:50 +0100 Subject: [PATCH] Change test execution context parameter name --- .../src/common/endowments/timeout.ava.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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';