Skip to content

Commit 25a0e2b

Browse files
committed
add: after and before test strucute snippets
1 parent 0b51e26 commit 25a0e2b

File tree

5 files changed

+38
-0
lines changed

5 files changed

+38
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ You can see all installed snippets in `Tools > Snippets...`, in the sublime text
5454
* (JSDuck) [https://github.com/senchalabs/jsduck](https://github.com/senchalabs/jsduck)
5555
* (idiomatic CSS) [https://github.com/necolas/idiomatic-css](https://github.com/necolas/idiomatic-css)
5656
* (JS Design Patterns) [https://addyosmani.com/resources/essentialjsdesignpatterns/book/](https://addyosmani.com/resources/essentialjsdesignpatterns/book/)
57+
* (Node.js Assert) [https://nodejs.org/api/assert.html](https://nodejs.org/api/assert.html)
58+
* (Jasmine) [http://jasmine.github.io/2.0/introduction.html](http://jasmine.github.io/2.0/introduction.html)
5759

5860
## Contributing
5961

snippets/js/tests/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
- [Structure](structure/)
44
- afterEach
5+
- after
56
- beforeEach
7+
- before
68
- describe
79
- it
810
- [BDD](bdd/) (expect)

snippets/js/tests/structure/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ afterEach(function() {
1010
});
1111
```
1212

13+
### [ts.after] after
14+
15+
```javascript
16+
after(function() {
17+
${1}
18+
});
19+
```
20+
1321
### [ts.beforeeach] beforeEach
1422

1523
```javascript
@@ -18,6 +26,14 @@ beforeEach(function() {
1826
});
1927
```
2028

29+
### [ts.before] before
30+
31+
```javascript
32+
before(function() {
33+
${1}
34+
});
35+
```
36+
2137
### [ts.describe] describe
2238

2339
```javascript
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<snippet>
2+
<content><![CDATA[
3+
after(function() {
4+
${1}
5+
});
6+
]]></content>
7+
<tabTrigger>ts.after</tabTrigger>
8+
<description>ts - after</description>
9+
</snippet>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<snippet>
2+
<content><![CDATA[
3+
before(function() {
4+
${1}
5+
});
6+
]]></content>
7+
<tabTrigger>ts.before</tabTrigger>
8+
<description>ts - before</description>
9+
</snippet>

0 commit comments

Comments
 (0)