mirror of
https://github.com/qntm/fastjson
synced 2025-12-22 19:44:42 +01:00
Compare commits
3 Commits
d38c08abdb
...
88528dc01d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
88528dc01d | ||
|
|
96216ca984 | ||
|
|
3c2bca6ffb |
@ -19,10 +19,10 @@
|
||||
],
|
||||
"scripts": {
|
||||
"bench": "node ./benchmarks/index.js",
|
||||
"mocha": "c8 --100 mocha",
|
||||
"unit": "c8 --100 mocha",
|
||||
"postpublish": "npm version patch && git push",
|
||||
"standard": "standard",
|
||||
"test": "npm run standard && npm run mocha"
|
||||
"test": "npm run standard && npm run unit"
|
||||
},
|
||||
"devDependencies": {
|
||||
"benchmark": "^2.1.4",
|
||||
|
||||
@ -1,19 +1,19 @@
|
||||
/* eslint-env mocha */
|
||||
|
||||
import assert from 'assert'
|
||||
import assert from 'node:assert/strict'
|
||||
|
||||
import { parse, stringify } from '../src/index.js'
|
||||
|
||||
describe('fastjson', () => {
|
||||
describe('parse', () => {
|
||||
it('works', () => {
|
||||
assert.deepStrictEqual(parse('abdsfsal{}'), null)
|
||||
assert.deepEqual(parse('abdsfsal{}'), null)
|
||||
})
|
||||
})
|
||||
|
||||
describe('stringify', () => {
|
||||
it('works', () => {
|
||||
assert.deepStrictEqual(stringify('lm995'), 'null')
|
||||
assert.deepEqual(stringify('lm995'), 'null')
|
||||
})
|
||||
})
|
||||
})
|
||||
Loading…
x
Reference in New Issue
Block a user