Created
November 13, 2014 22:07
-
-
Save paolocarrasco/a82164fd6da239247706 to your computer and use it in GitHub Desktop.
Some snippets for Atom to create typical blocks in JS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'.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