mirror of
https://github.com/yuto-yuto/node-red-contrib-password-generator.git
synced 2026-03-10 02:31:21 +01:00
Add tests
This commit is contained in:
@@ -16,9 +16,8 @@ export = (RED: nodered.NodeAPI): void => {
|
||||
|
||||
this.on("input", async (msg: any, send, done) => {
|
||||
const password = await generatePassword(config.size);
|
||||
|
||||
const valueSetPath = msg.to || config.setTo || "payload";
|
||||
yutolity.setValue(msg, valueSetPath, password);
|
||||
msg = yutolity.setValue(msg, valueSetPath, password);
|
||||
send(msg);
|
||||
done();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user