Skip to content

Commit a17f509

Browse files
committed
test: Fix tests
1 parent 524a631 commit a17f509

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/nuqs/src/parsers.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ describe('parsers', () => {
3333
expect(parseAsIndex.parse('1')).toBe(0)
3434
expect(parseAsIndex.parse('3.14')).toBe(2)
3535
expect(parseAsIndex.parse('3,14')).toBe(2)
36-
expect(parseAsIndex.parse('0')).toBeNull()
37-
expect(parseAsIndex.parse('-1')).toBeNull()
36+
expect(parseAsIndex.parse('0')).toBe(-1)
37+
expect(parseAsIndex.parse('-1')).toBe(-2)
3838
expect(parseAsIndex.serialize(0)).toBe('1')
3939
expect(parseAsIndex.serialize(3.14)).toBe('4')
4040
})

0 commit comments

Comments
 (0)