@@ -40,195 +40,9 @@ afterAll(() => {
4040});
4141endsnippet
4242
43- snippet any " any (js)" b
44- jasmine.any($1 )
45- endsnippet
46-
47- snippet anyt " anything (js)" b
48- jasmine.anything()
49- endsnippet
50-
51- snippet objc " object containing (js)" b
52- jasmine.objectContaining({
53- ${VISUAL}$0
54- });
55- endsnippet
56-
57- snippet arrc " array containing (js)" b
58- jasmine.arrayContaining([${1: value1 } ]);
59- endsnippet
60-
61- snippet strm " string matching (js)" b
62- jasmine.stringMatching("${1: matcher } ")
63- endsnippet
64-
6543snippet ru " runs (js)" b
6644runs(() => {
6745 $0
6846});
6947endsnippet
7048
71- snippet wa " waits (js)" b
72- waits($1 );
73- endsnippet
74-
75- snippet ex " expect (js)" b
76- expect(${1: target } )$0 ;
77- endsnippet
78-
79- snippet ee " expect to equal (js)" b
80- expect(${1: target } ).toEqual(${2: value } );
81- endsnippet
82-
83- snippet el " expect to be less than (js)" b
84- expect(${1: target } ).toBeLessThan(${2: value } );
85- endsnippet
86-
87- snippet eg " expect to be greater than (js)" b
88- expect(${1: target } ).toBeGreaterThan(${2: value } );
89- endsnippet
90-
91- snippet eb " expect to be (js)" b
92- expect(${1: target } ).toBe(${2: value } );
93- endsnippet
94-
95- snippet em " expect to match (js)" b
96- expect(${1: target } ).toMatch(${2: pattern } );
97- endsnippet
98-
99- snippet eha " expect to have attribute (js)" b
100- expect(${1: target } ).toHaveAttr('${2: attr } '${3: , '${4: value } ' } );
101- endsnippet
102-
103- snippet et " expect to be truthy (js)" b
104- expect(${1: target } ).toBeTruthy();
105- endsnippet
106-
107- snippet ef " expect to be falsy (js)" b
108- expect(${1: target } ).toBeFalsy();
109- endsnippet
110-
111- snippet ed " expect to be defined (js)" b
112- expect(${1: target } ).toBeDefined();
113- endsnippet
114-
115- snippet eud " expect to be defined (js)" b
116- expect(${1: target } ).toBeUndefined();
117- endsnippet
118-
119- snippet en " expect to be null (js)" b
120- expect(${1: target } ).toBeNull();
121- endsnippet
122-
123- snippet ec " expect to contain (js)" b
124- expect(${1: target } ).toContain(${2: value } );
125- endsnippet
126-
127- snippet ev " expect to be visible (js)" b
128- expect(${1: target } ).toBeVisible();
129- endsnippet
130-
131- snippet eh " expect to be hidden (js)" b
132- expect(${1: target } ).toBeHidden();
133- endsnippet
134-
135- snippet eth " expect to throw (js)" b
136- expect(${1: target } ).toThrow(${2: value } );
137- endsnippet
138-
139- snippet ethe " expect to throw error (js)" b
140- expect(${1: target } ).toThrowError(${2: value } );
141- endsnippet
142-
143- snippet notx " expect not (js)" b
144- expect(${1: target } ).not$0 ;
145- endsnippet
146-
147- snippet note " expect not to equal (js)" b
148- expect(${1: target } ).not.toEqual(${2: value } );
149- endsnippet
150-
151- snippet notl " expect to not be less than (js)" b
152- expect(${1: target } ).not.toBeLessThan(${2: value } );
153- endsnippet
154-
155- snippet notg " expect to not be greater than (js)" b
156- expect(${1: target } ).not.toBeGreaterThan(${2: value } );
157- endsnippet
158-
159- snippet notm " expect not to match (js)" b
160- expect(${1: target } ).not.toMatch(${2: pattern } );
161- endsnippet
162-
163- snippet notha " expect to not have attribute (js)" b
164- expect(${1: target } ).not.toHaveAttr('${2: attr } '${3: , '${4: value } ' } );
165- endsnippet
166-
167- snippet nott " expect not to be truthy (js)" b
168- expect(${1: target } ).not.toBeTruthy();
169- endsnippet
170-
171- snippet notf " expect not to be falsy (js)" b
172- expect(${1: target } ).not.toBeFalsy();
173- endsnippet
174-
175- snippet notd " expect not to be defined (js)" b
176- expect(${1: target } ).not.toBeDefined();
177- endsnippet
178-
179- snippet notn " expect not to be null (js)" b
180- expect(${1: target } ).not.toBeNull();
181- endsnippet
182-
183- snippet notc " expect not to contain (js)" b
184- expect(${1: target } ).not.toContain(${2: value } );
185- endsnippet
186-
187- snippet notv " expect not to be visible (js)" b
188- expect(${1: target } ).not.toBeVisible();
189- endsnippet
190-
191- snippet noth " expect not to be hidden (js)" b
192- expect(${1: target } ).not.toBeHidden();
193- endsnippet
194-
195- snippet notth " expect not to throw (js)" b
196- expect(${1: target } ).not.toThrow(${2: value } );
197- endsnippet
198-
199- snippet notthe " expect not to throw error (js)" b
200- expect(${1: target } ).not.toThrowError(${2: value } );
201- endsnippet
202-
203- snippet s " spy on (js)" b
204- spyOn(${1: object } , '${2: method } ')$0 ;
205- endsnippet
206-
207- snippet sr " spy on and return (js)" b
208- spyOn(${1: object } , '${2: method } ').and.returnValue(${3: arguments } );
209- endsnippet
210-
211- snippet st " spy on and throw (js)" b
212- spyOn(${1: object } , '${2: method } ').and.throwError(${3: exception } );
213- endsnippet
214-
215- snippet sct " spy on and call through (js)" b
216- spyOn(${1: object } , '${2: method } ').and.callThrough();
217- endsnippet
218-
219- snippet scf " spy on and call fake (js)" b
220- spyOn(${1: object } , '${2: method } ').and.callFake(${3: function } );
221- endsnippet
222-
223- snippet ethbc " expect to have been called (js)" b
224- expect(${1: target } ).toHaveBeenCalled();
225- endsnippet
226-
227- snippet nthbc " expect not to have been called (js)" b
228- expect(${1: target } ).not.toHaveBeenCalled();
229- endsnippet
230-
231- snippet ethbcw " expect to have been called with (js)" b
232- expect(${1: target } ).toHaveBeenCalledWith(${2: arguments } );
233- endsnippet
234-
0 commit comments