Skip to content

Commit e9780a9

Browse files
committed
test: use regex to test the error message
This is to fix the circle ci test failure. https://circleci.com/gh/vuejs/jsx/77 Such errors never occurred on my local machine. So I have to hack it.
1 parent 17e683f commit e9780a9

File tree

1 file changed

+1
-1
lines changed
  • packages/babel-plugin-transform-vue-jsx/test

1 file changed

+1
-1
lines changed

packages/babel-plugin-transform-vue-jsx/test/snapshot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ test('JSXElement attribute value throws error', t =>
353353
resolve()
354354
})
355355
.catch(e => {
356-
t.is(e.message, 'getAttributes (attribute value): JSXElement is not supported')
356+
t.regex(e.message, /getAttributes \(attribute value\): JSXElement is not supported/)
357357
resolve()
358358
})
359359
}))

0 commit comments

Comments
 (0)