mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 06:27:11 +01:00
fix most type errors
still have a few things outstanding
This commit is contained in:
committed by
Thomas Ruoff
parent
c3d8c6f3e0
commit
90ac05a907
@@ -1,17 +1,13 @@
|
||||
import { getNextSmaller, getNextBigger } from './array'
|
||||
|
||||
// @ts-expect-error ts-migrate(2582) FIXME: Cannot find name 'test'. Do you need to install ty... Remove this comment to see the full error message
|
||||
test('getPreviousInOrder', () => {
|
||||
const result = getNextSmaller([3, 1, 2, 0, 8, 9, 10], 5)
|
||||
|
||||
// @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'.
|
||||
expect(result).toEqual(3)
|
||||
})
|
||||
|
||||
// @ts-expect-error ts-migrate(2582) FIXME: Cannot find name 'test'. Do you need to install ty... Remove this comment to see the full error message
|
||||
test('getNextInOrder', () => {
|
||||
const result = getNextBigger([7, 8, 9, 3, 1, 2], 4)
|
||||
|
||||
// @ts-expect-error ts-migrate(2304) FIXME: Cannot find name 'expect'.
|
||||
expect(result).toEqual(7)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user