fix(List): toString is different from toJSON
This commit is contained in:
@ -134,4 +134,5 @@ test('pushBack, pushFront, popBack, popFront, back, front', () => {
|
||||
|
||||
test('toJSON, toString', () => {
|
||||
expect(List.from([1, 2]).toJSON()).toEqual('[ 1, 2 ]')
|
||||
expect(List.from([0n]).toString()).toEqual('[ 0 ]')
|
||||
})
|
||||
Reference in New Issue
Block a user