2022-10-14 13:44:47 +02:00
|
|
|
{
|
|
|
|
"Lua setup-module": {
|
|
|
|
"prefix": "msetup",
|
|
|
|
"description": "Create lua module with setup function inside",
|
|
|
|
"body": [
|
|
|
|
"local M = {}",
|
|
|
|
"",
|
|
|
|
"function M.setup()",
|
|
|
|
" $0",
|
|
|
|
"end",
|
|
|
|
"",
|
|
|
|
"return M"
|
|
|
|
]
|
2022-12-26 20:07:10 +01:00
|
|
|
},
|
|
|
|
"Busted describe": {
|
|
|
|
"prefix": "describe",
|
|
|
|
"description": "Create a describe call for a busted test",
|
|
|
|
"body": [
|
|
|
|
"describe(\"$1\", function ()",
|
|
|
|
"\t$0",
|
|
|
|
"end)"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"Busted it": {
|
|
|
|
"prefix": "it",
|
|
|
|
"description": "Create an it call for a busted test",
|
|
|
|
"body": [
|
|
|
|
"it(\"$1\", function ()",
|
|
|
|
"\t$0",
|
|
|
|
"end)"
|
|
|
|
]
|
2022-10-14 13:44:47 +02:00
|
|
|
}
|
|
|
|
}
|