-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon-helpers-tests.html
55 lines (42 loc) · 1.22 KB
/
common-helpers-tests.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<template name="testCommonHelpersLog">
{{log 1000 'Hello' name='World' end='!'}}
</template>
<template name="testCommonHelpersField">
{{field o f}}
</template>
<template name="testCommonHelpersNot">
{{not a}}
</template>
<template name="testCommonHelpersEq">
{{eq a b c}}
</template>
<template name="testCommonHelpersIs">
{{is a b c}}
</template>
<template name="testCommonHelpersAnd">
{{and a b c}}
</template>
<template name="testCommonHelpersOr">
{{or a b c}}
</template>
<template name="testCommonHelpersSum">
{{sum a b c}}
</template>
<template name="testCommonHelpersPositive">
{{positive a b c}}
</template>
<template name="testCommonHelpersNegative">
{{negative a b c}}
</template>
<template name="testCommonHelpersGtGteLtLte">
{{#if (gt a b c comp=comp)}}gt{{/if}}{{#if (gte a b c comp=comp)}}gte{{/if}}{{#if (lt a b c comp=comp)}}lt{{/if}}{{#if (lte a b c comp=comp)}}lte{{/if}}
</template>
<template name="testCommonHelpersNullOrUndefined">
{{nullOrUndefined a b c}}
</template>
<template name="testCommonHelpersWhen">
{{when a b c}}{{when d e f yes='yes' no='no'}}
</template>
<template name="testCommonHelpersChunk">
{{#each group in (chunk arr size)}}[{{group.join ','}}]{{/each}}
</template>