fix: 產出格式修正
This commit is contained in:
@@ -30,6 +30,12 @@ test('CLI runs doctor and scan against one prototype', async () => {
|
||||
| --- | --- | --- |
|
||||
| [\`index.html\`](index.html) | \`legacy/index.jsp\` | Customer portal entry |
|
||||
`)
|
||||
await mkdir(join(cwd, '.playwright'), { recursive: true })
|
||||
await writeFile(join(cwd, '.playwright/cli.config.json'), JSON.stringify({
|
||||
browser: {
|
||||
browserName: 'chromium'
|
||||
}
|
||||
}, null, 2))
|
||||
|
||||
const doctor = await exec('node', [cli, 'doctor'], { cwd })
|
||||
await exec('node', [cli, 'scan'], { cwd })
|
||||
@@ -59,7 +65,6 @@ test('CLI runs doctor and scan against one prototype', async () => {
|
||||
assert.equal(appMap.routes[0].evidence.recommendedTemplate, undefined)
|
||||
assert.equal(appMap.routes[0].guide.legacyJsp, 'legacy/index.jsp')
|
||||
assert.equal(appMap.routes[0].guide.description, 'Customer portal entry')
|
||||
assert.equal(appMap.guideSources[0].source, 'portal.md')
|
||||
})
|
||||
|
||||
function pick(object, keys) {
|
||||
|
||||
Reference in New Issue
Block a user