mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
feat: Variable args (#1667)
* feat: Variable args * chore: Make the assert error message not wrong
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user