Skip to content

Commit

Permalink
skip diffs.spec.js when Node.js 10
Browse files Browse the repository at this point in the history
  • Loading branch information
sujin-park committed Oct 13, 2020
1 parent 4c61e20 commit 3dc4489
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/integration/diffs.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ describe('diffs', function() {
var diffs, expected;

before(function(done) {
// @TODO: It should be removed when Node.js 10 LTS is not supported.
const nodeVersion = parseInt(process.version.match(/^v(\d+)\./)[1], 10);
if (nodeVersion === 10) {
this.skip();
}

run('diffs/diffs.fixture.js', [], function(err, res) {
if (err) {
done(err);
Expand Down

0 comments on commit 3dc4489

Please sign in to comment.