Skip to content

Commit a8727e7

Browse files
nuke-ellingtonlpil
authored andcommitted
Parser v1 for whole file.
1 parent 7c673c7 commit a8727e7

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

snippets/javascript/javascript-jasmine.snippets

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,41 @@
1+
version 1
2+
13
snippet des "Describe (js)"
24
describe('${1:description}', function() {
3-
${0}
5+
$0
46
});
57

68
snippet it "it (js)"
79
it('${1:description}', function() {
8-
${0}
10+
$0
911
});
1012

1113
snippet bef "before each (js)"
1214
beforeEach(function() {
13-
${0}
15+
$0
1416
});
1517

1618
snippet aft "after each (js)"
1719
afterEach(function() {
18-
${0}
20+
$0
1921
});
2022

2123
snippet befa "before all (js)"
2224
beforeAll(function() {
23-
${0}
25+
$0
2426
});
2527

2628
snippet afta "after all (js)"
2729
afterAll(function() {
28-
${0}
30+
$0
2931
});
3032

3133
snippet any "any (js)"
32-
jasmine.any(${1})
34+
jasmine.any($1)
3335

3436
snippet anyt "anything (js)"
3537
jasmine.anything()
3638

37-
version 1
3839
snippet objc "object containing (js)"
3940
jasmine.objectContaining({
4041
${VISUAL}$0
@@ -48,14 +49,14 @@ snippet strm "string matching (js)"
4849

4950
snippet ru "runs (js)"
5051
runs(function() {
51-
${0}
52+
$0
5253
});
5354

5455
snippet wa "waits (js)"
55-
waits(${1});
56+
waits($1);
5657

5758
snippet ex "expect (js)"
58-
expect(${1:target})${0};
59+
expect(${1:target})$0;
5960

6061
snippet ee "expect to equal (js)"
6162
expect(${1:target}).toEqual(${2:value});
@@ -106,7 +107,7 @@ snippet ethe "expect to throw error (js)"
106107
expect(${1:target}).toThrowError(${2:value});
107108

108109
snippet notx "expect not (js)"
109-
expect(${1:target}).not${0};
110+
expect(${1:target}).not$0;
110111

111112
snippet note "expect not to equal (js)"
112113
expect(${1:target}).not.toEqual(${2:value});
@@ -151,7 +152,7 @@ snippet notthe "expect not to throw error (js)"
151152
expect(${1:target}).not.toThrowError(${2:value});
152153

153154
snippet s "spy on (js)"
154-
spyOn(${1:object}, '${2:method}');
155+
spyOn(${1:object}, '${2:method}')$0;
155156

156157
snippet sr "spy on and return (js)"
157158
spyOn(${1:object}, '${2:method}').and.returnValue(${3:arguments});

0 commit comments

Comments
 (0)