mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-17 23:59:58 +01:00
46 lines
726 B
JSON
46 lines
726 B
JSON
{
|
|
"$schema": "../commands.schema.json#",
|
|
"spec": {
|
|
"command": "test simple",
|
|
"source": "@testbot",
|
|
"parameters": [
|
|
{
|
|
"key": "meow",
|
|
"schema": {
|
|
"schema_type": "primitive",
|
|
"type": "string"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"tests": [
|
|
{
|
|
"name": "success",
|
|
"input": "/test simple mrrp",
|
|
"output": {
|
|
"meow": "mrrp"
|
|
}
|
|
},
|
|
{
|
|
"name": "directed success",
|
|
"input": "/test simple@testbot mrrp",
|
|
"output": {
|
|
"meow": "mrrp"
|
|
}
|
|
},
|
|
{
|
|
"name": "missing parameter",
|
|
"input": "/test simple",
|
|
"error": true,
|
|
"output": {
|
|
"meow": ""
|
|
}
|
|
},
|
|
{
|
|
"name": "directed at another bot",
|
|
"input": "/test simple@anotherbot mrrp",
|
|
"error": false,
|
|
"output": null
|
|
}
|
|
]
|
|
}
|