优化
This commit is contained in:
@@ -207,7 +207,8 @@ function fixture(options = {}) {
|
||||
test('module is context injected, blocks missing prerequisites and excludes forbidden surfaces', () => {
|
||||
assert.match(source, /export async function run\(context\)/)
|
||||
assert.doesNotMatch(source, /https?:\/\/|process\.env|fetch\(/)
|
||||
assert.doesNotMatch(source, /addCoverageGap|coverageGap\(/)
|
||||
assert.equal((source.match(/addCoverageGap\(/g) || []).length, 1)
|
||||
assert.match(source, /looseboard-pool-fulfillment/)
|
||||
assert.match(source, /deploymentBlocker: true/)
|
||||
assert.match(source, /contactPhone: '\d+'/)
|
||||
assert.doesNotMatch(source, /contactPhone: '\+[^']+'/)
|
||||
|
||||
Reference in New Issue
Block a user