mirror of
https://github.com/yuto-yuto/node-red-contrib-password-generator.git
synced 2024-11-21 19:06:44 +01:00
11 lines
354 B
TypeScript
11 lines
354 B
TypeScript
import "mocha";
|
|
import { expect } from "chai";
|
|
import { generatePassword } from "../lib/PasswordGenerator";
|
|
|
|
describe("PasswordGenerator", () => {
|
|
it("should return true for the first time", async () => {
|
|
const result = await generatePassword(10);
|
|
console.log(`before: "${result}"`)
|
|
expect(result).to.lengthOf(10);
|
|
});
|
|
}); |