Skip to content

Instantly share code, notes, and snippets.

@gibbage
Created November 20, 2014 23:08
Show Gist options
  • Save gibbage/6680cd8a79a3beec38a3 to your computer and use it in GitHub Desktop.
Save gibbage/6680cd8a79a3beec38a3 to your computer and use it in GitHub Desktop.
JavaScript: Jasmine templates for JetBrains IDEs. On OSX save in ~/Library/Preferences/RubyMine60/templates
<?xml version="1.0" encoding="UTF-8"?>
<templateSet group="JavaScript - Jasmine">
<template name="dd" value="describe('$DESCRIPTION$', function () {&#10; $END$&#10;});" description="insert describe block" toReformat="true" toShortenFQNames="true">
<variable name="DESCRIPTION" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="JAVA_SCRIPT" value="true" />
</context>
</template>
<template name="it" value="it('$DESCRIPTION$', function () {&#10; $END$&#10;});" description="insert new assertion" toReformat="false" toShortenFQNames="true">
<variable name="DESCRIPTION" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="JAVA_SCRIPT" value="true" />
</context>
</template>
<template name="b4" value="beforeEach(function () {&#10; $END$&#10;});" description="insert beforeEach block" toReformat="false" toShortenFQNames="true">
<context>
<option name="JAVA_SCRIPT" value="true" />
</context>
</template>
</templateSet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment