Skip to content

Commit

Permalink
Require Node.js 6 (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike-Neto authored and sindresorhus committed Aug 8, 2019
1 parent e54fb9f commit 19ef2c0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
language: node_js
node_js:
- '12'
- '10'
- '8'
- '6'
- '4'
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"url": "sindresorhus.com"
},
"engines": {
"node": ">=4"
"node": ">=6"
},
"scripts": {
"test": "xo && mocha"
Expand Down
12 changes: 6 additions & 6 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});

Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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();
});

Expand Down

0 comments on commit 19ef2c0

Please sign in to comment.