diff --git a/tests/acceptance/6/CRITERIA.json b/tests/acceptance/6/CRITERIA.json new file mode 100644 index 0000000..5b8374f --- /dev/null +++ b/tests/acceptance/6/CRITERIA.json @@ -0,0 +1,12 @@ +{ + "schema": "elffuss-t2t/criteria@2", + "issue": 6, + "criteria": [ + { + "index": 1, + "tests": [ + "tests/acceptance/6/criteria.test.js::criterion 1" + ] + } + ] +} diff --git a/tests/acceptance/6/criteria.test.js b/tests/acceptance/6/criteria.test.js new file mode 100644 index 0000000..b0b63f1 --- /dev/null +++ b/tests/acceptance/6/criteria.test.js @@ -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) +})