1
0
mirror of https://github.com/qntm/base65536 synced 2026-03-24 08:24:45 +01:00

Compare commits

..

2 Commits

Author SHA1 Message Date
qntm
f3225e8f91
Update package.json (#113) 2025-12-23 00:12:57 +00:00
qntm
9f08a95057
Use Node Test Runner (#112)
* Update package.json

* Update gen.test.js

* Update index.test.js
2025-12-22 21:53:17 +00:00
3 changed files with 5 additions and 6 deletions

View File

@ -11,7 +11,7 @@
"main": "src/index.js", "main": "src/index.js",
"types": "typings/index.d.ts", "types": "typings/index.d.ts",
"scripts": { "scripts": {
"unit": "c8 --100 mocha", "unit": "node --test --experimental-test-coverage",
"standard": "standard", "standard": "standard",
"tag": "node -e \"require('child_process').spawn('git', ['tag', `v${require('./package.json').version}`], { stdio: 'inherit' })\"", "tag": "node -e \"require('child_process').spawn('git', ['tag', `v${require('./package.json').version}`], { stdio: 'inherit' })\"",
"tag-and-publish": "npm run tag && git push --tags && npm publish && npm version patch --no-git-tag-version && git add . && git commit -m \"Bump patch\" && git push", "tag-and-publish": "npm run tag && git push --tags && npm publish && npm version patch --no-git-tag-version && git add . && git commit -m \"Bump patch\" && git push",
@ -29,9 +29,7 @@
"license": "MIT", "license": "MIT",
"devDependencies": { "devDependencies": {
"base65536-test": "^1.1.2", "base65536-test": "^1.1.2",
"c8": "^10.1.2",
"glob": "^13.0.0", "glob": "^13.0.0",
"mocha": "^11.0.0",
"safe-code-point": "^3.0.2", "safe-code-point": "^3.0.2",
"standard": "^17.0.0" "standard": "^17.0.0"
}, },

View File

@ -1,5 +1,6 @@
import assert from 'node:assert/strict' import assert from 'node:assert/strict'
import { describe, it } from 'mocha' import { describe, it } from 'node:test'
import { paddingBlockStart, blockStarts, safeCodePoint, pairStrings } from '../scripts/gen.js' import { paddingBlockStart, blockStarts, safeCodePoint, pairStrings } from '../scripts/gen.js'
describe('gen', () => { describe('gen', () => {

View File

@ -1,7 +1,7 @@
import assert from 'node:assert/strict' import assert from 'node:assert/strict'
import fs from 'node:fs' import fs from 'node:fs'
import { describe, it } from 'mocha' import { describe, it } from 'node:test'
import { globSync } from 'glob' import { globSync } from 'glob'
import { encode, decode } from '../src/index.js' import { encode, decode } from '../src/index.js'