fix: jsdoc
This commit is contained in:
@@ -43,12 +43,17 @@ test('CLI runs doctor and scan against one prototype', async () => {
|
||||
assert.match(doctor.stdout, /ok prototype directory/)
|
||||
assert.match(contract, /Customer Portal/)
|
||||
assert.match(contract, /BDD Scenarios/)
|
||||
assert.match(contract, /Capture Artifacts/)
|
||||
assert.match(contract, /Browser Evidence/)
|
||||
assert.match(bdd, /Feature: Customer portal entry/)
|
||||
assert.match(bdd, /Scenario: 使用者填寫必要資料並送出成功/)
|
||||
assert.doesNotMatch(contract, /Recommended template/)
|
||||
assert.equal(spec.pageContract.title, null)
|
||||
assert.equal(spec.bddContract.feature, 'Customer portal entry')
|
||||
assert.equal(spec.bddContract.scenarios[0].type, 'application-submit')
|
||||
assert.match(spec.captureArtifacts.domSummary, /\.ht\/cache\/prototype\/index\/dom-summary\.json$/)
|
||||
assert.match(spec.captureArtifacts.accessibilityTree, /\.ht\/cache\/prototype\/index\/accessibility-tree\.json$/)
|
||||
assert.equal(Array.isArray(spec.browserEvidence.externalResourceFailures), true)
|
||||
assert.deepEqual(pick(spec.pageContract.forms[0].fields[0], ['name', 'label', 'type', 'required']), {
|
||||
name: 'email',
|
||||
label: 'Email',
|
||||
|
||||
Reference in New Issue
Block a user