Solution to #2: Resolve the README mention of sync-core.sh, which this repository does not contain #5

Closed
elffuss-bot wants to merge 1 commits from item/0xef942c9480e93dba7221f5ccf4f52c7fface666847e7cec96a3bc5aea17dc743 into main
3 changed files with 33 additions and 1 deletions

View File

@@ -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.

View File

@@ -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"
]
}
]
}

View File

@@ -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/')
})