Skip to content

Commit

Permalink
fix: unit error
Browse files Browse the repository at this point in the history
  • Loading branch information
lareinayanyu committed Jan 8, 2025
1 parent 7ff5c5f commit 9f3b397
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/webpack-plugin/test/platform/common/mode.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ describe('template should transform correct', function () {
it('should work correct with web mode', function () {
const input = '<button @click@web="handleClick">获取用户信息</button>'
const output = compileTemplate(input, { mode: 'web' })
expect(output).toBe("<mpx-button @click='(e)=>__invoke(e, [[\"handleClick\"]])'>获取用户信息</mpx-button>")
expect(output).toBe('<mpx-button @click="(e)=>__invoke(e, [[\'handleClick\']])">获取用户信息</mpx-button>')
})

it('should work normal if no attr in tag', function () {
Expand Down

0 comments on commit 9f3b397

Please sign in to comment.