12 lines
464 B
JavaScript
12 lines
464 B
JavaScript
import assert from 'node:assert/strict'
|
|
import { readFileSync } from 'node:fs'
|
|
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/)
|
|
assert.doesNotMatch(source, /phoneSequence % 10\)/)
|
|
})
|