添加更多配置文件设置,实现了一个api,完成部分文件的部分测试
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Qumolama.d
2022-05-03 18:57:20 +08:00
parent 3de6ad9a2a
commit 3b8712a212
14 changed files with 596 additions and 21 deletions

15
tests/generator.test.js Normal file
View File

@ -0,0 +1,15 @@
import * as Generator from "../src/generator"
beforeAll(() => {
})
test("generateToken", () => {
const tokens = []
for(let i = 0; i < 1000; i++) {
tokens.push(Generator.generateToken("Qumolama.d"))
}
expect(new Set(tokens).size === tokens.length).toBeTruthy()
})