1
0
mirror of https://github.com/qntm/fastjson synced 2025-12-22 19:44:42 +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": { "scripts": {
"bench": "node ./benchmarks/index.js", "bench": "node ./benchmarks/index.js",
"unit": "c8 --100 mocha", "mocha": "c8 --100 mocha",
"postpublish": "npm version patch && git push", "postpublish": "npm version patch && git push",
"standard": "standard", "standard": "standard",
"test": "npm run standard && npm run unit" "test": "npm run standard && npm run mocha"
}, },
"devDependencies": { "devDependencies": {
"benchmark": "^2.1.4", "benchmark": "^2.1.4",

View File

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