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:
Jaco
2022-01-06 15:42:40 +02:00
committed by GitHub
parent 66115fe674
commit 10bc207240
5 changed files with 22 additions and 22 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","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"}}');
});
});