Skip to content

Commit

Permalink
Change test execution context parameter name
Browse files Browse the repository at this point in the history
  • Loading branch information
david0xd committed Dec 7, 2022
1 parent 0e1f3a7 commit 5c1d834
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -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';
Expand Down

0 comments on commit 5c1d834

Please sign in to comment.