aboutsummaryrefslogtreecommitdiff
path: root/vim/bundle/vim-snippets/UltiSnips/coffee-jasmine.snippets
blob: 0dd35cd654c9fbb77f1b0958f95b77e2dfd77e95 (plain)
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
#
# CoffeeScript versions -- adapted from the JS TextMate bundle + additions
# for some jasmine-jquery matchers
#
priority -50

extends coffee

priority -49

snippet des "Describe (coffee)" b
describe '${1:description}', ->
	$0
endsnippet

snippet it "it (coffee)" b
it '${1:description}', ->
	$0
endsnippet

snippet bef "before each (coffee)" b
beforeEach ->
	$0
endsnippet

snippet aft "after each (coffee)" b
afterEach ->
	$0
endsnippet

snippet any "any (coffee)" b
jasmine.any($1)
endsnippet

snippet ru "runs (coffee)" b
runs ->
	$0
endsnippet

snippet wa "waits (coffee)" b
waits($1)
endsnippet

snippet ex "expect (coffee)" b
expect(${1:target})$0
endsnippet

snippet ee "expect to equal (coffee)" b
expect(${1:target}).toEqual(${2:value})
endsnippet

snippet em "expect to match (coffee)" b
expect(${1:target}).toMatch(${2:pattern})
endsnippet

snippet eha "expect to have attribute (coffee)" b
expect(${1:target}).toHaveAttr('${2:attr}'${3:, '${4:value}'})
endsnippet

snippet et "expect to be truthy (coffee)" b
expect(${1:target}).toBeTruthy()
endsnippet

snippet ef "expect to be falsy (coffee)" b
expect(${1:target}).toBeFalsy()
endsnippet

snippet ed "expect to be defined (coffee)" b
expect(${1:target}).toBeDefined()
endsnippet

snippet en "expect to be null (coffee)" b
expect(${1:target}).toBeNull()
endsnippet

snippet ec "expect to contain (coffee)" b
expect(${1:target}).toContain(${2:value})
endsnippet

snippet ev "expect to be visible (coffee)" b
expect(${1:target}).toBeVisible()
endsnippet

snippet eh "expect to be hidden (coffee)" b
expect(${1:target}).toBeHidden()
endsnippet

snippet notx "expect not (coffee)" b
expect(${1:target}).not$0
endsnippet

snippet note "expect not to equal (coffee)" b
expect(${1:target}).not.toEqual(${2:value})
endsnippet

snippet notm "expect not to match (coffee)" b
expect(${1:target}).not.toMatch(${2:pattern})
endsnippet

snippet notha "expect to not have attribute (coffee)" b
expect(${1:target}).not.toHaveAttr('${2:attr}'${3:, '${4:value}'})
endsnippet

snippet nott "expect not to be truthy (coffee)" b
expect(${1:target}).not.toBeTruthy()
endsnippet

snippet notf "expect not to be falsy (coffee)" b
expect(${1:target}).not.toBeFalsy()
endsnippet

snippet notd "expect not to be defined (coffee)" b
expect(${1:target}).not.toBeDefined()
endsnippet

snippet notn "expect not to be null (coffee)" b
expect(${1:target}).not.toBeNull()
endsnippet

snippet notc "expect not to contain (coffee)" b
expect(${1:target}).not.toContain(${2:value})
endsnippet

snippet notv "expect not to be visible (coffee)" b
expect(${1:target}).not.toBeVisible()
endsnippet

snippet noth "expect not to be hidden (coffee)" b
expect(${1:target}).not.toBeHidden()
endsnippet

snippet s "spy on (coffee)" b
spyOn(${1:object}, "${2:method}")$0
endsnippet

snippet sr "spy on and return (coffee)" b
spyOn(${1:object}, "${2:method}").andReturn(${3:arguments})
endsnippet

snippet st "spy on and throw (coffee)" b
spyOn(${1:object}, "${2:method}").andThrow(${3:exception})
endsnippet

snippet sct "spy on and call through (coffee)" b
spyOn(${1:object}, "${2:method}").andCallThrough()
endsnippet

snippet scf "spy on and call fake (coffee)" b
spyOn(${1:object}, "${2:method}").andCallFake(${3:function})
endsnippet

snippet esc "expect was called (coffee)" b
expect(${1:target}).wasCalled()
endsnippet

snippet escw "expect was called with (coffee)" b
expect(${1:target}).wasCalledWith(${2:arguments})
endsnippet

snippet notsc "expect was not called (coffee)" b
expect(${1:target}).wasNotCalled()
endsnippet

snippet noscw "expect was not called with (coffee)" b
expect(${1:target}).wasNotCalledWith(${2:arguments})
endsnippet