Skip to content

Instantly share code, notes, and snippets.

@jesperronn

jesperronn/gist:9344831

Last active Aug 29, 2015
Embed
What would you like to do?
IntelliJ Jasmine tab triggers. Here are my definitions so that you can type ”it” and “desc” in your javascript test file.
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$
});
@jesperronn

This comment has been minimized.

Copy link
Owner Author

@jesperronn jesperronn commented Mar 4, 2014

To add it in IntelliJ, go to "Settings" > "Live Templates" (and add each as a new in group "JavaScript"

@darren-rose

This comment has been minimized.

Copy link

@darren-rose darren-rose commented Mar 4, 2014

Awesome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.