Skip to content

Commit

Permalink
Fixed deprecated warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dmester committed Aug 7, 2022
1 parent c1f6a23 commit 88bba30
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions test/e2e/base-browser-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ export function testBrowser(jdenticon, bundle) {
});

bundleTest.test("jdenticon.update*", t => {
t.isa(jdenticon.update, Function);
t.isa(jdenticon.updateCanvas, Function);
t.isa(jdenticon.updateSvg, Function);
t.type(jdenticon.update, Function);
t.type(jdenticon.updateCanvas, Function);
t.type(jdenticon.updateSvg, Function);
t.end();
});

Expand Down
2 changes: 1 addition & 1 deletion test/e2e/node/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function testNode(jdenticon) {
});

tap.test("jdenticon.toPng", t => {
t.isa(jdenticon.toPng("Icon1", 100), Buffer);
t.type(jdenticon.toPng("Icon1", 100), Buffer);
iconTest(jdenticon);
t.end();
});
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/node/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ tap.test("jdenticon.config", t => {
console.warn = originalConsoleWarn;
}

t.equivalent(warn, ["jdenticon.config is deprecated. Use jdenticon.configure() instead."]);
t.same(warn, ["jdenticon.config is deprecated. Use jdenticon.configure() instead."]);
t.end();
});

Expand Down

0 comments on commit 88bba30

Please sign in to comment.