Skip to content

Commit 914f08f

Browse files
committed
Fix ts-expect-error (should not be there)
1 parent 13cb10d commit 914f08f

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

test/fixtures/tstyche/documentation/__typetests__/docs.tst.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ function firstItem<T>(target: Array<T>): T | undefined {
77
test("first item requires a parameter", () => {
88
expect(firstItem(["a", "b", "c"])).type.toBe<string | undefined>();
99

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

test/types.test.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { assertError, assertPass } from './asserts.mjs'
44
import { fixtures } from './paths.mjs'
55

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

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

0 commit comments

Comments
 (0)