Files
engine/tests/acceptance/3/criteria.test.js
0a8030532dcc9532f5aa2ae21762d399f52d6f5c 233873c2d2
All checks were successful
elffuss/validation Validation passed with flags for the reviewers
Solution 0xc7eb18b42e5cfcc9574747bb9ebc6a2482850b2836341e3b3362b7c54660c33c
T2T-Item: 0xc7eb18b42e5cfcc9574747bb9ebc6a2482850b2836341e3b3362b7c54660c33c
T2T-Issue: 0xf42f82ffe487fa87c286eb31d60d3c01318181e9a6f69b4a384ec61dd2a1872d
2026-10-05 17:22:33 +00:00

13 lines
647 B
JavaScript

import { test } from 'node:test'
import assert from 'node:assert/strict'
import { readFileSync } from 'node:fs'
const text = readFileSync(new URL('../../../package.json', import.meta.url), 'utf8') // the content of package.json
test('criterion 1', () => {
// The `description` field of package.json equals `Elffuss inference runtime for the browser. No dependencies.`, and the `scripts` object and the `private` field are unchanged.
const pkg = JSON.parse(text)
assert.equal(pkg.description, 'Elffuss inference runtime for the browser. No dependencies.')
assert.equal(pkg.scripts, pkg.scripts)
assert.equal(pkg.private, pkg.private)
})