All checks were successful
elffuss/validation Validation passed with flags for the reviewers
T2T-Item: 0xfea2b9a5a52a14a73bfab07f7d7eab5b904b084a3935e03f971456616eb41041 T2T-Issue: 0xf42f82ffe487fa87c286eb31d60d3c01318181e9a6f69b4a384ec61dd2a1872d
17 lines
684 B
JavaScript
17 lines
684 B
JavaScript
import test from 'node:test'
|
|
import assert from 'node:assert/strict'
|
|
import pkg from '../../../package.json' with { type: 'json' }
|
|
|
|
test('criterion 1', () => {
|
|
assert.equal(pkg.description, 'Elffuss inference runtime for the browser. No dependencies.')
|
|
assert.equal(pkg.private, true)
|
|
assert.equal(Object.keys(pkg.scripts).length, 31)
|
|
assert.equal(pkg.scripts.test, 'node tests/gguf.mjs')
|
|
assert.equal(
|
|
pkg.scripts.check,
|
|
'for f in js/*.js tests/*.mjs; do node --check "$f" || exit 1; done'
|
|
)
|
|
assert.equal(pkg.scripts['test:e2e'], 'node tests/e2e-claw.mjs')
|
|
assert.equal(pkg.scripts['perfil:pases'], 'node tests/browser.mjs tests/prefillpases.browser.mjs')
|
|
})
|