CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
sagemathinc

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/backend/sha1.test.ts
Views: 687
1
import { sha1, uuidsha1 } from "./sha1";
2
3
describe("compute some sha1 hashes", () => {
4
it("computes sha1 hash of old SageMathCloud", () => {
5
expect(sha1("SageMathCloud")).toBe(
6
"31acd8ca91346abcf6a49d2b1d88333f439d57a6"
7
);
8
});
9
10
it("computes sha1 hash of new CoCalc", () => {
11
expect(sha1("CoCalc")).toBe("c898c97dca68742a5a6331f9fa0ca02483cbfd25");
12
});
13
});
14
15
describe("compute some uuids", () => {
16
it("computes uuid associated to 'CoCalc'", () => {
17
expect(uuidsha1("CoCalc")).toBe("c898c97d-ca68-4742-a5a6-331f9fa0ca02");
18
});
19
});
20
21