Skip to content

Commit

Permalink
Fix ts-expect-error (should not be there)
Browse files Browse the repository at this point in the history
  • Loading branch information
SleeplessByte committed Jul 31, 2024
1 parent 13cb10d commit 914f08f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ function firstItem<T>(target: Array<T>): T | undefined {
test("first item requires a parameter", () => {
expect(firstItem(["a", "b", "c"])).type.toBe<string | undefined>();

// @ts-expect-error
expect(firstItem()).type.toRaiseError("Expected 1 argument");
});

Expand Down
2 changes: 1 addition & 1 deletion test/types.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { assertError, assertPass } from './asserts.mjs'
import { fixtures } from './paths.mjs'

shelljs.echo('type tests (only) > documentation solution (smoke test)')
assertError('tstyche', join(fixtures, 'tstyche', 'documentation'))
assertPass('tstyche', join(fixtures, 'tstyche', 'documentation'))

shelljs.echo('type tests (only) > failing solution')
assertError('tstyche', join(fixtures, 'tstyche', 'fire'))
Expand Down

0 comments on commit 914f08f

Please sign in to comment.