node-red-contrib-password-g.../test/PasswordGenerator_spec.ts
2021-07-11 09:57:56 +02:00

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);
});
});