You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920212223242526272829303132333435
  1. const assert = require("assert");
  2. const fingerprint = require("../src");
  3. describe("api", () => {
  4. it("fingerprint is length of 3", () => {
  5. assert.equal(
  6. fingerprint(
  7. "e56a207acd1e6714735487c199c6f095844b7cc8e5971d86c003a7b6f36ef51e"
  8. ).length,
  9. 3
  10. );
  11. });
  12. it("fingerprint is length of 3", () => {
  13. const expectedFingerprint = [
  14. {
  15. color: "#FFB5DA",
  16. icon: "fa-flask"
  17. },
  18. {
  19. color: "#009191",
  20. icon: "fa-archive"
  21. },
  22. {
  23. color: "#B5DAFE",
  24. icon: "fa-beer"
  25. }
  26. ];
  27. assert.deepEqual(
  28. fingerprint(
  29. "e56a207acd1e6714735487c199c6f095844b7cc8e5971d86c003a7b6f36ef51e"
  30. ),
  31. expectedFingerprint
  32. );
  33. });
  34. });