bug修复
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Qumolama.d
2022-05-03 19:05:28 +08:00
parent 3b8712a212
commit 594fbdc75b
4 changed files with 23 additions and 4 deletions

View File

@ -12,4 +12,20 @@ test("generateToken", () => {
}
expect(new Set(tokens).size === tokens.length).toBeTruthy()
})
test("uuid", () => {
expect(Generator.uuid("test")).toBe("098f6bcd-4621-3373-8ade-4e832627b4f6")
})
test("noSymbolUUID", () => {
expect(Generator.noSymboUUID("test")).toBe("098f6bcd462133738ade4e832627b4f6")
})
test("uuidToNoSymboUUID", () => {
expect(Generator.uuidToNoSymboUUID("098f6bcd-4621-3373-8ade-4e832627b4f6")).toBe("098f6bcd462133738ade4e832627b4f6")
})
test("toSymboUUID", () => {
expect(Generator.toSymboUUID("098f6bcd462133738ade4e832627b4f6")).toBe("098f6bcd-4621-3373-8ade-4e832627b4f6")
})