UNPKG

@cocalc/backend

Version:

CoCalc backend functionality: functionality used by either the hub, the next.js server or the project.

17 lines 714 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const sha1_1 = require("./sha1"); describe("compute some sha1 hashes", () => { it("computes sha1 hash of old SageMathCloud", () => { expect((0, sha1_1.sha1)("SageMathCloud")).toBe("31acd8ca91346abcf6a49d2b1d88333f439d57a6"); }); it("computes sha1 hash of new CoCalc", () => { expect((0, sha1_1.sha1)("CoCalc")).toBe("c898c97dca68742a5a6331f9fa0ca02483cbfd25"); }); }); describe("compute some uuids", () => { it("computes uuid associated to 'CoCalc'", () => { expect((0, sha1_1.uuidsha1)("CoCalc")).toBe("c898c97d-ca68-4742-a5a6-331f9fa0ca02"); }); }); //# sourceMappingURL=sha1.test.js.map