Skip to content
This repository has been archived by the owner on Aug 8, 2020. It is now read-only.

Snippets improvements #5

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions snippets/ava.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<snippet>
<content><![CDATA[
import test from 'ava';
import $1 from '$2';
import $1 from ${2:'${1/([A-Z])/-\l$1/g}'};

test('${3:title}', t => {
test(${3/.+/'/}${3:title}${3/.+/', /}t => {
t.is($1(), '$4');
});
]]></content>
Expand Down
2 changes: 1 addition & 1 deletion snippets/test-async.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<snippet>
<content><![CDATA[
test('${1:title}', async t => {
test(${1/.+/'/}${1:title}${1/.+/', /}async t => {
$2
});
]]></content>
Expand Down
2 changes: 1 addition & 1 deletion snippets/test-cb.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<snippet>
<content><![CDATA[
test.cb('${1:title}', t => {
test.cb(${1/.+/'/}${1:title}${1/.+/', /}t => {
$2
});
]]></content>
Expand Down
2 changes: 1 addition & 1 deletion snippets/test-serial.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<snippet>
<content><![CDATA[
test.serial('${1:title}', t => {
test.serial(${1/.+/'/}${1:title}${1/.+/', /}t => {
$2
});
]]></content>
Expand Down
2 changes: 1 addition & 1 deletion snippets/test.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<snippet>
<content><![CDATA[
test('${1:title}', t => {
test(${1/.+/'/}${1:title}${1/.+/', /}t => {
$2
});
]]></content>
Expand Down