Add code templates

Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
Severin Kaderli 2019-07-30 13:15:44 +02:00
parent 6c1553891e
commit f7a21144b8
Signed by: severinkaderli
GPG key ID: F419F8835B72F0C4
15 changed files with 4574 additions and 0 deletions

View file

@ -0,0 +1,22 @@
<templateSet group="JavaScript Testing">
<template name="descr" value="describe('$NAME$', function() {&#10; $END$&#10;});" description="Inserts describe() block" toReformat="true" toShortenFQNames="true">
<variable name="NAME" expression="jsMethodName()" defaultValue="" alwaysStopAt="true" />
<context />
</template>
<template name="bfe" value="beforeEach(function() {&#10; $END$&#10;});" description="Inserts beforeEach() block" toReformat="true" toShortenFQNames="true">
<context />
</template>
<template name="it" value="it('should $NAME$', function() {&#10; $END$&#10;}); " description="Inserts it() block" toReformat="true" toShortenFQNames="true">
<variable name="NAME" expression="" defaultValue="" alwaysStopAt="true" />
<context />
</template>
<template name="afe" value="afterEach(function() {&#10; $END$&#10;});" description="Inserts afterEach() block" toReformat="true" toShortenFQNames="true">
<context />
</template>
<template name="af" value="after(function() {&#10; $END$&#10;});" description="Inserts after() block" toReformat="true" toShortenFQNames="true">
<context />
</template>
<template name="bf" value="before(function() {&#10; $END$&#10;});" description="Inserts before() block" toReformat="true" toShortenFQNames="true">
<context />
</template>
</templateSet>