feat(vim): add snippets for testing in lua and playwright
This commit is contained in:
parent
4b55548a96
commit
f4d9e842ed
3 changed files with 25 additions and 0 deletions
|
|
@ -0,0 +1,9 @@
|
||||||
|
# name: A test function
|
||||||
|
# description: A test function same as it but with test
|
||||||
|
# key: test
|
||||||
|
# contributor: Ade Attwood <code@adeattwood.co.uk>
|
||||||
|
# filetypes: javascript,javascriptreact,typescript,typescriptreact
|
||||||
|
# --
|
||||||
|
test('${1}', () => {
|
||||||
|
${0}
|
||||||
|
});
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
# name: Lua test
|
||||||
|
# key: desc
|
||||||
|
# contributor: Ade Attwood <code@adeattwood.co.uk>
|
||||||
|
# filetypes: lua
|
||||||
|
# --
|
||||||
|
describe("$1", function()
|
||||||
|
$0
|
||||||
|
end)
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
# name: Lua test
|
||||||
|
# key: it
|
||||||
|
# contributor: Ade Attwood <code@adeattwood.co.uk>
|
||||||
|
# filetypes: lua
|
||||||
|
# --
|
||||||
|
it("$1", function()
|
||||||
|
$0
|
||||||
|
end)
|
||||||
Loading…
Reference in a new issue