1
0
mirror of https://github.com/qntm/fastjson synced 2025-12-22 11:34:41 +01:00

Compare commits

..

No commits in common. "88528dc01dd3ceb8de2b8b32d259f3bc806e21e8" and "d38c08abdbe5930277d914c650ff2d2a5015ff54" have entirely different histories.

2 changed files with 5 additions and 5 deletions

View File

@ -19,10 +19,10 @@
],
"scripts": {
"bench": "node ./benchmarks/index.js",
"unit": "c8 --100 mocha",
"mocha": "c8 --100 mocha",
"postpublish": "npm version patch && git push",
"standard": "standard",
"test": "npm run standard && npm run unit"
"test": "npm run standard && npm run mocha"
},
"devDependencies": {
"benchmark": "^2.1.4",

View File

@ -1,19 +1,19 @@
/* eslint-env mocha */
import assert from 'node:assert/strict'
import assert from 'assert'
import { parse, stringify } from '../src/index.js'
describe('fastjson', () => {
describe('parse', () => {
it('works', () => {
assert.deepEqual(parse('abdsfsal{}'), null)
assert.deepStrictEqual(parse('abdsfsal{}'), null)
})
})
describe('stringify', () => {
it('works', () => {
assert.deepEqual(stringify('lm995'), 'null')
assert.deepStrictEqual(stringify('lm995'), 'null')
})
})
})