Add code templates
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
parent
6c1553891e
commit
f7a21144b8
15 changed files with 4574 additions and 0 deletions
|
@ -0,0 +1,22 @@
|
|||
<templateSet group="JavaScript Testing">
|
||||
<template name="descr" value="describe('$NAME$', function() { $END$ });" description="Inserts describe() block" toReformat="true" toShortenFQNames="true">
|
||||
<variable name="NAME" expression="jsMethodName()" defaultValue="" alwaysStopAt="true" />
|
||||
<context />
|
||||
</template>
|
||||
<template name="bfe" value="beforeEach(function() { $END$ });" description="Inserts beforeEach() block" toReformat="true" toShortenFQNames="true">
|
||||
<context />
|
||||
</template>
|
||||
<template name="it" value="it('should $NAME$', function() { $END$ }); " description="Inserts it() block" toReformat="true" toShortenFQNames="true">
|
||||
<variable name="NAME" expression="" defaultValue="" alwaysStopAt="true" />
|
||||
<context />
|
||||
</template>
|
||||
<template name="afe" value="afterEach(function() { $END$ });" description="Inserts afterEach() block" toReformat="true" toShortenFQNames="true">
|
||||
<context />
|
||||
</template>
|
||||
<template name="af" value="after(function() { $END$ });" description="Inserts after() block" toReformat="true" toShortenFQNames="true">
|
||||
<context />
|
||||
</template>
|
||||
<template name="bf" value="before(function() { $END$ });" description="Inserts before() block" toReformat="true" toShortenFQNames="true">
|
||||
<context />
|
||||
</template>
|
||||
</templateSet>
|
Loading…
Add table
Add a link
Reference in a new issue