优化
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import assert from 'node:assert/strict'
|
||||
import { readFileSync } from 'node:fs'
|
||||
import test from 'node:test'
|
||||
|
||||
const source = readFileSync(new URL('./master-data.mjs', import.meta.url), 'utf8')
|
||||
|
||||
test('master-data uses only current partner types for API and import fixtures', () => {
|
||||
assert.match(source, /partnerType: 'CARRIER', types: \['CARRIER'\]/)
|
||||
assert.match(source, /types: \['CARRIER'\]/)
|
||||
assert.match(source, /`IMP\$\{suffix\}`, `导入船公司-\$\{suffix\}`, 'CARRIER'/)
|
||||
assert.doesNotMatch(source, /partnerType: 'SUPPLIER'|types: \['SUPPLIER'|SHIPPING_COMPANY/)
|
||||
})
|
||||
Reference in New Issue
Block a user