Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
ab3ae7ec90 | |||
b2bb918ee4 |
13223
package-lock.json
generated
13223
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@pushrocks/smartjson",
|
||||
"version": "5.0.2",
|
||||
"version": "5.0.3",
|
||||
"private": false,
|
||||
"description": "typed json handlers",
|
||||
"main": "dist_ts/index.js",
|
||||
|
4321
pnpm-lock.yaml
generated
Normal file
4321
pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -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();
|
||||
|
@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@pushrocks/smartjson',
|
||||
version: '5.0.2',
|
||||
version: '5.0.3',
|
||||
description: 'typed json handlers'
|
||||
}
|
||||
|
Reference in New Issue
Block a user