diff --git a/.gitignore b/.gitignore index ed8c35a..1d897c4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /node_modules /src-test/actual_files -/scratch \ No newline at end of file +/scratch +package-lock.json \ No newline at end of file diff --git a/src-test/smith_test.js b/src-test/smith_test.js index 453e623..8c949f0 100644 --- a/src-test/smith_test.js +++ b/src-test/smith_test.js @@ -199,7 +199,7 @@ describe('An empty array', function () { it('has no errors', spritesmithUtils.assertNoError()); it('renders an empty spritesheet', function () { - assert.deepEqual(this.result.image, new Buffer(0)); + assert.deepEqual(this.result.image, Buffer.alloc(0)); }); it('returns an empty coordinate mapping', function () { assert.deepEqual(this.result.coordinates, {});