From bd131902b95f6fcdc0938131e35d688d8de3d44b Mon Sep 17 00:00:00 2001 From: 16808507970f18ea89a07ad1d30b53e7e3a3891d <16808507970f18ea89a07ad1d30b53e7e3a3891d@users.noreply.invalid> Date: Fri, 2 Oct 2026 07:24:02 +0000 Subject: [PATCH] Solution 0xef942c9480e93dba7221f5ccf4f52c7fface666847e7cec96a3bc5aea17dc743 T2T-Item: 0xef942c9480e93dba7221f5ccf4f52c7fface666847e7cec96a3bc5aea17dc743 T2T-Issue: 0x3feb02019930bc53f6e4b4d509adc4dafbd4700ac11301034c7ce23337e9cb35 --- README.md | 2 +- tests/acceptance/2/CRITERIA.json | 18 ++++++++++++++++++ tests/acceptance/2/criteria.test.js | 14 ++++++++++++++ 3 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 tests/acceptance/2/CRITERIA.json create mode 100644 tests/acceptance/2/criteria.test.js diff --git a/README.md b/README.md index a4a05ef..ac24a9b 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # core -Stand-in of the core repository for the public testnet of Elffuss Token to Token (T2T): only the files that some open task touches, and the modules they import. The full import is a later step. +Stand-in of the core repository for the public testnet of Elffuss Token to Token (T2T): only the files that some open task touches, and the modules they import. The full import is a later step. Products vendor the core into web/js/ with the same file names. diff --git a/tests/acceptance/2/CRITERIA.json b/tests/acceptance/2/CRITERIA.json new file mode 100644 index 0000000..549b0d2 --- /dev/null +++ b/tests/acceptance/2/CRITERIA.json @@ -0,0 +1,18 @@ +{ + "schema": "elffuss-t2t/criteria@2", + "issue": 2, + "criteria": [ + { + "index": 1, + "tests": [ + "tests/acceptance/2/criteria.test.js::criterion 1" + ] + }, + { + "index": 2, + "tests": [ + "tests/acceptance/2/criteria.test.js::criterion 2" + ] + } + ] +} diff --git a/tests/acceptance/2/criteria.test.js b/tests/acceptance/2/criteria.test.js new file mode 100644 index 0000000..fb5c50d --- /dev/null +++ b/tests/acceptance/2/criteria.test.js @@ -0,0 +1,14 @@ +import { test } from 'node:test' +import assert from 'node:assert/strict' +import { readFileSync } from 'node:fs' +const text = readFileSync(new URL('../../../README.md', import.meta.url), 'utf8') // the content of README.md + +test('criterion 1', () => { + // README.md contains no reference to a file named `sync-core.sh` unless that file exists in the repository. + assert.strictEqual(text.includes('sync-core.sh'), false, 'README.md should not reference sync-core.sh unless it exists') +}) + +test('criterion 2', () => { + // README.md still states that the products vendor the core into `web/js/` with the same file names. + assert.strictEqual(text.includes('web/js/'), true, 'README.md should state that products vendor the core into web/js/') +}) -- 2.49.1