Elixir: Add exunit case snippet
This commit is contained in:
parent
66b6d7c54d
commit
f878039dd6
@ -87,10 +87,6 @@ snippet doc
|
|||||||
"""
|
"""
|
||||||
snippet fn
|
snippet fn
|
||||||
fn ${1:args} -> ${0} end
|
fn ${1:args} -> ${0} end
|
||||||
snippet fun
|
|
||||||
function do
|
|
||||||
${0}
|
|
||||||
end
|
|
||||||
snippet mdoc
|
snippet mdoc
|
||||||
@moduledoc """
|
@moduledoc """
|
||||||
${0}
|
${0}
|
||||||
@ -114,6 +110,12 @@ snippet test
|
|||||||
end
|
end
|
||||||
snippet testa
|
snippet testa
|
||||||
test "${1:test_name}", %{${2:arg: arg}} do
|
test "${1:test_name}", %{${2:arg: arg}} do
|
||||||
|
${0}
|
||||||
|
end
|
||||||
|
snippet exunit
|
||||||
|
defmodule ${1:`substitute(vim_snippets#Filename(), '\(_\|^\)\(.\)', '\u\2', 'g')`} do
|
||||||
|
use ExUnit.Case
|
||||||
|
|
||||||
${0}
|
${0}
|
||||||
end
|
end
|
||||||
snippet try try .. rescue .. end
|
snippet try try .. rescue .. end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user