From 19ef2c0bae2c69fe0213dfea704100c7606bc3b0 Mon Sep 17 00:00:00 2001 From: Mike-Neto <34457476+Mike-Neto@users.noreply.github.com> Date: Thu, 8 Aug 2019 15:15:46 +0100 Subject: [PATCH] Require Node.js 6 (#24) --- .travis.yml | 3 ++- package.json | 2 +- test.js | 12 ++++++------ 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7d69d74..e155464 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,6 @@ language: node_js node_js: + - '12' + - '10' - '8' - '6' - - '4' diff --git a/package.json b/package.json index a29669f..ce1a6c7 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "url": "sindresorhus.com" }, "engines": { - "node": ">=4" + "node": ">=6" }, "scripts": { "test": "xo && mocha" diff --git a/test.js b/test.js index 7c5dd5a..1849196 100644 --- a/test.js +++ b/test.js @@ -12,8 +12,8 @@ it('should tar files in buffer mode', cb => { const stream = tar('test.tar'); stream.on('data', file => { - assert.equal(file.path, path.join(__dirname, 'fixture', 'test.tar')); - assert.equal(file.relative, 'test.tar'); + assert.strictEqual(file.path, path.join(__dirname, 'fixture', 'test.tar')); + assert.strictEqual(file.relative, 'test.tar'); cb(); }); @@ -49,8 +49,8 @@ it('should tar files in stream mode', cb => { }; stream.on('data', file => { - assert.equal(file.path, path.join(__dirname, 'fixture', 'test.tar')); - assert.equal(file.relative, 'test.tar'); + assert.strictEqual(file.path, path.join(__dirname, 'fixture', 'test.tar')); + assert.strictEqual(file.relative, 'test.tar'); }); stream.on('end', cb); @@ -99,8 +99,8 @@ it.skip('should include directories', cb => { inspect.on('entry', (header, stream) => { stream.on('end', () => { - assert.equal(header.type, 'directory'); - assert.equal(header.name, 'fixture2/'); + assert.strictEqual(header.type, 'directory'); + assert.strictEqual(header.name, 'fixture2/'); cb(); });