Skip to content

Instantly share code, notes, and snippets.

@jackpinto
Created April 14, 2014 16:04
Show Gist options
  • Save jackpinto/10661353 to your computer and use it in GitHub Desktop.
Save jackpinto/10661353 to your computer and use it in GitHub Desktop.
Sublime Javscript Snippet
<snippet>
<content><![CDATA[
inject(['${1:dependency}',
function(${2:param}) {
${3:expect(true).toBe(true);}
}
])
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>inject</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.js</scope>
</snippet>
<snippet>
<content><![CDATA[
it("${1:should...}", inject(['${2:dependency}',
function(${3:param}) {
${4:expect(true).toBe(true);}
}
]));
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>itinject</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.js</scope>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment