Add tests

This commit is contained in:
yuto-yuto
2021-07-10 10:33:07 +02:00
parent 9211a8308a
commit cd168a303d
3 changed files with 48 additions and 20 deletions

View File

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