Skip to content

Commit f268128

Browse files
albertoaladdin-add
authored andcommitted
Build: add Node v10 to travis (#10262)
* Build: add Node v10 to travis * Chore: fix assert message
1 parent 9c922ce commit f268128

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ node_js:
33
- "6"
44
- "8"
55
- "9"
6+
- "10"
67
sudo: false
78
branches:
89
only:

tests/lib/testers/no-test-runners.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
/* global describe, it */
88
/* eslint-disable no-global-assign*/
9-
const assert = require("assert"),
10-
RuleTester = require("../../../lib/testers/rule-tester");
9+
const assert = require("assert");
10+
const RuleTester = require("../../../lib/testers/rule-tester");
1111
const tmpIt = it;
1212
const tmpDescribe = describe;
1313

@@ -26,7 +26,7 @@ try {
2626
{ code: "var foo = bar;", output: "invalid output", errors: 1 }
2727
]
2828
});
29-
}, /Output is incorrect\. \(' foo = bar;' === 'invalid output'\)$/);
29+
}, new assert.AssertionError({ actual: " foo = bar;", expected: "invalid output", operator: "===" }).message);
3030
} finally {
3131
it = tmpIt;
3232
describe = tmpDescribe;

0 commit comments

Comments
 (0)