Latest deps (incl. bn.js revert) (#1364)
* Bump dev (w/ no import.meta.url) * Latest deps (incl. bn.js revert) * CHANGELOG * Adjust expectation
This commit is contained in:
@@ -14,18 +14,18 @@ describe('stringify', (): void => {
|
||||
it('stringifies an array of values', (): void => {
|
||||
expect(
|
||||
stringify(['a', 1, 2n, new BN(3)])
|
||||
).toEqual('["a",1,"2","03"]');
|
||||
).toEqual('["a",1,"2","3"]');
|
||||
});
|
||||
|
||||
it('stringifies an array of values (with spaces)', (): void => {
|
||||
expect(
|
||||
stringify(['a', 1, 2n, new BN(3)], 2)
|
||||
).toEqual('[\n "a",\n 1,\n "2",\n "03"\n]');
|
||||
).toEqual('[\n "a",\n 1,\n "2",\n "3"\n]');
|
||||
});
|
||||
|
||||
it('stringifies a nested object', (): void => {
|
||||
expect(
|
||||
stringify({ a: 'a', b: 1, c: { d: 2n, e: new BN(3) } })
|
||||
).toEqual('{"a":"a","b":1,"c":{"d":"2","e":"03"}}');
|
||||
).toEqual('{"a":"a","b":1,"c":{"d":"2","e":"3"}}');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user