Skip to content

Commit

Permalink
Fix deprecation warnings (#96)
Browse files Browse the repository at this point in the history
* resolve moderate severity npm audit warning with tough-cookie override, fix deprecation warning message for tests by updating Buffer, add package-lock to .gitignore

* remove override from package.json
  • Loading branch information
ChrisdeWolf authored Oct 23, 2024
1 parent 3bb5516 commit 85aa32a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/node_modules
/src-test/actual_files
/scratch
/scratch
package-lock.json
2 changes: 1 addition & 1 deletion src-test/smith_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, {});
Expand Down

0 comments on commit 85aa32a

Please sign in to comment.