Solution to #6: Drop the tests README pointer to a coordination file that is not in this repository #12

Closed
elffuss-bot wants to merge 1 commits from item/0x0a05b95217a076763de863d97671d40053f69a8a1e6ec2d660a719e301bbf5b8 into main
2 changed files with 23 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
{
"schema": "elffuss-t2t/criteria@2",
"issue": 6,
"criteria": [
{
"index": 1,
"tests": [
"tests/acceptance/6/criteria.test.js::criterion 1"
]
}
]
}

View File

@@ -0,0 +1,11 @@
import { test } from 'node:test'
import assert from 'node:assert/strict'
import { readFileSync } from 'node:fs'
const text = readFileSync(new URL('../../../tests/README.md', import.meta.url), 'utf8') // the content of tests/README.md
test('criterion 1', () => {
// tests/README.md contains no reference to `coordinacion/`
assert.equal(text.includes('coordinacion/'), false)
// and still states that the test folders are OPFS folders.
assert.equal(text.includes('OPFS'), true)
})