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

Commit

Permalink
Close #5 PR: Snippets improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
kipit authored and sindresorhus committed Mar 6, 2016
1 parent aadef62 commit e9e24ad
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
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

0 comments on commit e9e24ad

Please sign in to comment.