* Bump deps

* new bn.js toJSON
This commit is contained in:
Jaco
2022-01-02 08:08:15 +02:00
committed by GitHub
parent e3b9c93df2
commit 636b9730b4
6 changed files with 22 additions and 25 deletions
+3 -3
View File
@@ -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","3"]');
).toEqual('["a",1,"2","03"]');
});
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 "3"\n]');
).toEqual('[\n "a",\n 1,\n "2",\n "03"\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":"3"}}');
).toEqual('{"a":"a","b":1,"c":{"d":"2","e":"03"}}');
});
});