Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@paolocarrasco
Created November 13, 2014 22:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paolocarrasco/a82164fd6da239247706 to your computer and use it in GitHub Desktop.
Save paolocarrasco/a82164fd6da239247706 to your computer and use it in GitHub Desktop.
Some snippets for Atom to create typical blocks in JS
'.source.js':
'\'Describe\' block jasmine in unit test':
'prefix': 'describe'
'body': """
describe(\'$1\', function() {
$2
});
""",
'\'It\' block in jasmine unit test':
'prefix' : 'it'
'body': """
it('$1', function() {
$2
});
""",
'\'BeforeEach\' block in jasmine unit test':
'prefix': 'beforeEach'
'body': """
beforeEach(function() {
$1
});
""",
'Javascript function':
'prefix': 'function'
'body': """
function$1($2) {
$3
}
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment