summaryrefslogtreecommitdiff
path: root/luasnip_snippets/coffee-jasmine.json
blob: 563b88e278a985eceff830f6957bb40933234915 (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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
{
  "des": {
    "prefix": "des",
    "description": "Describe (coffee)",
    "body": [
      "describe '${1:description}', ->",
      "\t$0"
    ],
    "luasnip": {
      "priority": -49
    }
  },
  "it": {
    "prefix": "it",
    "description": "it (coffee)",
    "body": [
      "it '${1:description}', ->",
      "\t$0"
    ]
  },
  "bef": {
    "prefix": "bef",
    "description": "before each (coffee)",
    "body": [
      "beforeEach ->",
      "\t$0"
    ]
  },
  "aft": {
    "prefix": "aft",
    "description": "after each (coffee)",
    "body": [
      "afterEach ->",
      "\t$0"
    ]
  },
  "any": {
    "prefix": "any",
    "description": "any (coffee)",
    "body": "jasmine.any($1)"
  },
  "ru": {
    "prefix": "ru",
    "description": "runs (coffee)",
    "body": [
      "runs ->",
      "\t$0"
    ]
  },
  "wa": {
    "prefix": "wa",
    "description": "waits (coffee)",
    "body": "waits($1)"
  },
  "ex": {
    "prefix": "ex",
    "description": "expect (coffee)",
    "body": "expect(${1:target})$0"
  },
  "ee": {
    "prefix": "ee",
    "description": "expect to equal (coffee)",
    "body": "expect(${1:target}).toEqual(${2:value})"
  },
  "em": {
    "prefix": "em",
    "description": "expect to match (coffee)",
    "body": "expect(${1:target}).toMatch(${2:pattern})"
  },
  "eha": {
    "prefix": "eha",
    "description": "expect to have attribute (coffee)",
    "body": "expect(${1:target}).toHaveAttr('${2:attr}'${3:, '${4:value}'})"
  },
  "et": {
    "prefix": "et",
    "description": "expect to be truthy (coffee)",
    "body": "expect(${1:target}).toBeTruthy()"
  },
  "ef": {
    "prefix": "ef",
    "description": "expect to be falsy (coffee)",
    "body": "expect(${1:target}).toBeFalsy()"
  },
  "ed": {
    "prefix": "ed",
    "description": "expect to be defined (coffee)",
    "body": "expect(${1:target}).toBeDefined()"
  },
  "en": {
    "prefix": "en",
    "description": "expect to be null (coffee)",
    "body": "expect(${1:target}).toBeNull()"
  },
  "ec": {
    "prefix": "ec",
    "description": "expect to contain (coffee)",
    "body": "expect(${1:target}).toContain(${2:value})"
  },
  "ev": {
    "prefix": "ev",
    "description": "expect to be visible (coffee)",
    "body": "expect(${1:target}).toBeVisible()"
  },
  "eh": {
    "prefix": "eh",
    "description": "expect to be hidden (coffee)",
    "body": "expect(${1:target}).toBeHidden()"
  },
  "notx": {
    "prefix": "notx",
    "description": "expect not (coffee)",
    "body": "expect(${1:target}).not$0"
  },
  "note": {
    "prefix": "note",
    "description": "expect not to equal (coffee)",
    "body": "expect(${1:target}).not.toEqual(${2:value})"
  },
  "notm": {
    "prefix": "notm",
    "description": "expect not to match (coffee)",
    "body": "expect(${1:target}).not.toMatch(${2:pattern})"
  },
  "notha": {
    "prefix": "notha",
    "description": "expect to not have attribute (coffee)",
    "body": "expect(${1:target}).not.toHaveAttr('${2:attr}'${3:, '${4:value}'})"
  },
  "nott": {
    "prefix": "nott",
    "description": "expect not to be truthy (coffee)",
    "body": "expect(${1:target}).not.toBeTruthy()"
  },
  "notf": {
    "prefix": "notf",
    "description": "expect not to be falsy (coffee)",
    "body": "expect(${1:target}).not.toBeFalsy()"
  },
  "notd": {
    "prefix": "notd",
    "description": "expect not to be defined (coffee)",
    "body": "expect(${1:target}).not.toBeDefined()"
  },
  "notn": {
    "prefix": "notn",
    "description": "expect not to be null (coffee)",
    "body": "expect(${1:target}).not.toBeNull()"
  },
  "notc": {
    "prefix": "notc",
    "description": "expect not to contain (coffee)",
    "body": "expect(${1:target}).not.toContain(${2:value})"
  },
  "notv": {
    "prefix": "notv",
    "description": "expect not to be visible (coffee)",
    "body": "expect(${1:target}).not.toBeVisible()"
  },
  "noth": {
    "prefix": "noth",
    "description": "expect not to be hidden (coffee)",
    "body": "expect(${1:target}).not.toBeHidden()"
  },
  "s": {
    "prefix": "s",
    "description": "spy on (coffee)",
    "body": "spyOn(${1:object}, \"${2:method}\")$0"
  },
  "sr": {
    "prefix": "sr",
    "description": "spy on and return (coffee)",
    "body": "spyOn(${1:object}, \"${2:method}\").andReturn(${3:arguments})"
  },
  "st": {
    "prefix": "st",
    "description": "spy on and throw (coffee)",
    "body": "spyOn(${1:object}, \"${2:method}\").andThrow(${3:exception})"
  },
  "sct": {
    "prefix": "sct",
    "description": "spy on and call through (coffee)",
    "body": "spyOn(${1:object}, \"${2:method}\").andCallThrough()"
  },
  "scf": {
    "prefix": "scf",
    "description": "spy on and call fake (coffee)",
    "body": "spyOn(${1:object}, \"${2:method}\").andCallFake(${3:function})"
  },
  "esc": {
    "prefix": "esc",
    "description": "expect was called (coffee)",
    "body": "expect(${1:target}).wasCalled()"
  },
  "escw": {
    "prefix": "escw",
    "description": "expect was called with (coffee)",
    "body": "expect(${1:target}).wasCalledWith(${2:arguments})"
  },
  "notsc": {
    "prefix": "notsc",
    "description": "expect was not called (coffee)",
    "body": "expect(${1:target}).wasNotCalled()"
  },
  "noscw": {
    "prefix": "noscw",
    "description": "expect was not called with (coffee)",
    "body": "expect(${1:target}).wasNotCalledWith(${2:arguments})"
  }
}