test: stabilize full development acceptance
This commit is contained in:
@@ -4,8 +4,9 @@ import test from 'node:test'
|
||||
|
||||
const source = readFileSync(new URL('./admin-test-env-acceptance.mjs', import.meta.url), 'utf8')
|
||||
|
||||
test('admin acceptance phone fixture keeps more than ten generated customers distinct', () => {
|
||||
assert.match(source, /slice\(-7\)\.padStart\(7, '0'\)/)
|
||||
assert.match(source, /phoneSequence % 100/)
|
||||
test('admin acceptance phone fixture resolves a currently available deterministic candidate', () => {
|
||||
assert.match(source, /const seed = `\$\{this\.marker\}:\$\{this\.phoneSequence\}:\$\{attempt\}`/)
|
||||
assert.match(source, /administrator-phone-availability\?phone=/)
|
||||
assert.match(source, /attempt < 100/)
|
||||
assert.doesNotMatch(source, /phoneSequence % 10\)/)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user