node-red-contrib-password-g.../test/PasswordGenerator_spec.ts

11 lines
359 B
TypeScript
Raw Normal View History

2021-07-09 03:49:18 +02:00
import "mocha";
import { expect } from "chai";
import { generatePassword } from "../lib/PasswordGenerator";
describe.only("PasswordGenerator", () => {
it("should return true for the first time", async () => {
const result = await generatePassword(10);
console.log(`before: "${result}"`)
expect(result).to.lengthOf(10);
});
});