优化
This commit is contained in:
@@ -6,6 +6,15 @@ import { AcceptanceRun, parseArguments, validateExecutionOptions } from './admin
|
||||
|
||||
const source = readFileSync(resolve('scripts/admin-test-env-acceptance.mjs'), 'utf8')
|
||||
|
||||
test('F40 optional chain always creates its customer and rejects absent domestic PDA credentials', () => {
|
||||
const options = parseArguments(['--modules', 'phase5-root-fulfillment',
|
||||
'--gateway', 'http://localhost:9000', '--username', 'contract-user', '--password', 'contract-password',
|
||||
'--merchant-username', 'prior-client', '--merchant-password', 'prior-password'])
|
||||
assert.deepEqual(options.modules, ['merchant-qualification-fixture', 'phase5-root-fulfillment'])
|
||||
options.pdaUsername = ''; options.pdaPassword = ''
|
||||
assert.throws(() => validateExecutionOptions(options), /PDA/)
|
||||
})
|
||||
|
||||
test('phase-four HTTP acceptance modules are registered in the Admin acceptance entry', () => {
|
||||
for (const module of [
|
||||
'phase4-overseas-warehouse',
|
||||
|
||||
Reference in New Issue
Block a user