-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsugartest.xml
63 lines (58 loc) · 1.25 KB
/
sugartest.xml
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
56
57
58
59
60
61
62
63
<?xml version='1.0' encoding='utf-8'?>
<snippets language="js">
<snippet>
<tag>st</tag>
<description>SugarTest default structure</description>
<text><![CDATA[
SugarTest("${1:basename}")
.context("${2:description}")
.before(function(${3:data}) {
${4:action}
})
.should("${5:do this}", function() {
this.${6:assertion}
${7}
})
${0}
.end()
.run();
]]></text>
</snippet>
<snippet>
<tag>stc</tag>
<description>SugarTest context</description>
<text><![CDATA[ .context("${1:description}")
.should("${2:do this}", function() {
this.${3:assertion}
${4}
})
${0}
.end()]]></text>
</snippet>
<snippet>
<tag>sts</tag>
<description>SugarTest should</description>
<text><![CDATA[.should("${1:do this}", function() {
this.${2:assertion}
${3}
})
${0}
]]></text>
</snippet>
<snippet>
<tag>stb</tag>
<description>SugarTest before</description>
<text><![CDATA[.before(function(${1:data}) {
${3}
})
${0}]]></text>
</snippet>
<snippet>
<tag>sta</tag>
<description>SugarTest after</description>
<text><![CDATA[.after(function() {
${3}
})
${0}]]></text>
</snippet>
</snippets>