Skip to content

Commit

Permalink
fix(cli): test error (#16091)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiqingchen authored Jul 12, 2024
1 parent 96c8652 commit 7f20946
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/taro-cli/src/__tests__/doctor-config.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ describe('config validator of doctor', () => {

expect(messages.length).toEqual(3)
msgs = messages.map(line => line.content)
expect(msgs.includes('framework 的值 "" 与任何指定选项 ["nerv","react","preact","solid","vue","vue3"] 都不匹配')).toBeTruthy()
expect(msgs.includes('framework 的值 "" 与任何指定选项 ["nerv","react","preact","solid","vue","vue3","none"] 都不匹配')).toBeTruthy()
})

it('date', async () => {
Expand Down Expand Up @@ -93,7 +93,7 @@ describe('config validator of doctor', () => {
framework: 'other'
}))
expect(res.messages.length).toEqual(3)
expect(res.messages[2].content).toEqual('framework 的值 "other" 与任何指定选项 ["nerv","react","preact","solid","vue","vue3"] 都不匹配')
expect(res.messages[2].content).toEqual('framework 的值 "other" 与任何指定选项 ["nerv","react","preact","solid","vue","vue3","none"] 都不匹配')
})

it('designWidth', async () => {
Expand Down

0 comments on commit 7f20946

Please sign in to comment.