dotfiles/system/.config/phpstorm/config/templates/JavaScript Testing.xml
Severin Kaderli f7a21144b8
Add code templates
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
2019-07-30 13:15:44 +02:00

22 lines
No EOL
1.3 KiB
XML

<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>