fix(core): update

This commit is contained in:
2022-09-13 21:37:42 +02:00
parent 4478b7588a
commit 7ea17c792d
6 changed files with 4214 additions and 1760 deletions

View File

@ -40,4 +40,16 @@ tap.test('should products stable jsons', async () => {
console.log(jsonString);
});
tap.test('should work with base64', async() => {
const someObject = {
hi: 'there',
thisIs: 'awesome',
};
const base64Json = smartjson.stringifyBase64(someObject);
console.log(base64Json);
const decodedObject = smartjson.parseBase64(base64Json);
expect(decodedObject).toEqual(someObject);
})
tap.start();