1
0
mirror of https://github.com/qntm/fastjson synced 2025-12-23 03:54:41 +01:00

Compare commits

..

3 Commits

Author SHA1 Message Date
qntm
88528dc01d
Update index.test.js (#35) 2025-12-22 00:45:51 +00:00
qntm
96216ca984
Update package.json (#34) 2025-12-21 23:43:44 +00:00
qntm
3c2bca6ffb
Rename index.spec.js to index.test.js (#33) 2025-12-21 23:04:18 +00:00
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",
"mocha": "c8 --100 mocha", "unit": "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 mocha" "test": "npm run standard && npm run unit"
}, },
"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 'assert' import assert from 'node:assert/strict'
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.deepStrictEqual(parse('abdsfsal{}'), null) assert.deepEqual(parse('abdsfsal{}'), null)
}) })
}) })
describe('stringify', () => { describe('stringify', () => {
it('works', () => { it('works', () => {
assert.deepStrictEqual(stringify('lm995'), 'null') assert.deepEqual(stringify('lm995'), 'null')
}) })
}) })
}) })