优化
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
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\)/)
|
||||
})
|
||||
Reference in New Issue
Block a user