init
This commit is contained in:
17
jdenticon-js/test/unit/toPng.js
Normal file
17
jdenticon-js/test/unit/toPng.js
Normal file
@@ -0,0 +1,17 @@
|
||||
"use strict";
|
||||
|
||||
import tap from "tap";
|
||||
import { toPng } from "../../src/node-esm.js";
|
||||
|
||||
const pngHash = toPng("Icon1", 100);
|
||||
const pngValue = toPng("9faff4f3d6d7d75577ce810ec6d6a06be49c3a5a", 100);
|
||||
|
||||
tap.ok(pngHash);
|
||||
tap.ok(pngHash instanceof Buffer);
|
||||
tap.ok(pngHash.length > 500);
|
||||
|
||||
tap.ok(pngValue);
|
||||
tap.ok(pngValue instanceof Buffer);
|
||||
tap.ok(pngValue.length > 500);
|
||||
|
||||
tap.ok(pngHash.equals(pngValue));
|
||||
Reference in New Issue
Block a user