fix(core): update
This commit is contained in:
@ -50,6 +50,13 @@ tap.test('should work with base64', async() => {
|
||||
console.log(base64Json);
|
||||
const decodedObject = smartjson.parseBase64(base64Json);
|
||||
expect(decodedObject).toEqual(someObject);
|
||||
});
|
||||
|
||||
tap.test('stringify should handle plain string', async () => {
|
||||
const stringifiedString = smartjson.stringify('hello');
|
||||
console.log(stringifiedString);
|
||||
expect(stringifiedString).toEqual('"hello"')
|
||||
expect(smartjson.parse(stringifiedString)).toEqual('hello');
|
||||
})
|
||||
|
||||
tap.start();
|
||||
|
Reference in New Issue
Block a user