Last active
August 29, 2015 13:56
-
-
Save jesperronn/9344831 to your computer and use it in GitHub Desktop.
IntelliJ Jasmine tab triggers. Here are my definitions so that you can type ”it” and “desc” in your javascript test file.
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
Abbreviation: desc | |
Description: jasmine describe() | |
Applicable in: Javascript | |
Expand with: Default (Tab) | |
Template text: | |
describe('$SYSTEM_UNDER_TEST$', function() { | |
beforeEach(function() { | |
//First top level needs configure: | |
//jasmine.configure() | |
//example of setup: | |
//$('<p>added to sandbox</p>').appendTo('#sandbox'); | |
$SETUP$ | |
}); | |
$CURSOR$ | |
}); | |
Abbreviation: it | |
Description: jasmine test it() | |
Applicable in: Javascript | |
Expand with: Default (Tab) | |
Template text: | |
it('should $DO_SOME_COOL_STUFF$', function() { | |
$ADD_SOME_COOL_CODE$ | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To add it in IntelliJ, go to "Settings" > "Live Templates" (and add each as a new in group "JavaScript"