feat: Variable args (#1667)

* feat: Variable args

* chore: Make the assert error message not wrong
This commit is contained in:
J M
2022-07-18 15:46:32 -06:00
committed by GitHub
parent 009f7ddf84
commit 635c3627c9
4 changed files with 81 additions and 8 deletions

View File

@@ -758,5 +758,18 @@ export const action = {
qr: false,
}
}
},
async fetch(_effects, _input, testInput) {
assert(testInput == 42, "Input should be passed in");
return {
result: {
copyable: false,
message: "Done",
version: "0",
qr: false,
}
}
}
}