Skip to content

Commit cc3b04d

Browse files
author
Baitu Huang
committed
fix test bug
1 parent 2129a00 commit cc3b04d

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.travis.yml

-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ node_js:
44
- "10"
55
- "9"
66
- "8"
7-
- "7"
8-
- "6.12.0"
97
env:
108
- TEST=true
119
install:

test/transform-node/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function runTest ({ parseComponent, compile }, version, template) {
7070
if (error) {
7171
t.ok(
7272
errors.some((err) => {
73-
const msg = typeof err === 'string' ? err : err.msg
73+
const msg = typeof err === 'string' ? err : err.msg + ''
7474
return msg.indexOf(error) > 0
7575
}),
7676
'errors match expect: ' + error
@@ -79,7 +79,7 @@ function runTest ({ parseComponent, compile }, version, template) {
7979
if (tip) {
8080
t.ok(
8181
tips.some((err) => {
82-
const msg = typeof err === 'string' ? err : err.msg
82+
const msg = typeof err === 'string' ? err : err.msg + ''
8383
return msg.indexOf(tip) > 0
8484
}),
8585
'tips match expect: ' + tip

0 commit comments

Comments
 (0)