Created
August 26, 2017 08:12
-
-
Save boneskull/1b9a02cee22aac53dfc872d695f5c26a to your computer and use it in GitHub Desktop.
Live templates for Mocha for use in JetBrains' IDEs
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
<templateSet group="Mocha"> | |
<template name="desc" value="describe('$DESC$', function() { $END$ });" description="makes a describe block" toReformat="true" toShortenFQNames="true"> | |
<variable name="DESC" expression="jsMethodName()" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="JAVA_SCRIPT" value="true" /> | |
</context> | |
</template> | |
<template name="be" value="beforeEach(function() { $END$ });" description="beforeEach" toReformat="true" toShortenFQNames="true"> | |
<context> | |
<option name="JAVA_SCRIPT" value="true" /> | |
</context> | |
</template> | |
<template name="it" value="it('should $DESC$', function() { $END$ }); " description="makes an it block" toReformat="true" toShortenFQNames="true"> | |
<variable name="DESC" expression="" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="JAVA_SCRIPT" value="true" /> | |
</context> | |
</template> | |
<template name="ae" value="afterEach(function() { $END$ });" description="afterEach" toReformat="true" toShortenFQNames="true"> | |
<context> | |
<option name="JAVA_SCRIPT" value="true" /> | |
</context> | |
</template> | |
<template name="a" value="after(function() { $END$ });" description="after" toReformat="true" toShortenFQNames="true"> | |
<context> | |
<option name="JAVA_SCRIPT" value="true" /> | |
</context> | |
</template> | |
<template name="b" value="before(function() { $END$ });" description="before" toReformat="true" 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