Skip to content

Commit 73d5ad6

Browse files
committed
snippets explained
1 parent 4e5866e commit 73d5ad6

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.npmignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
snippets.cson
2+
test
3+
typings

README.md

+12
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@
55
npm install mocha-coderoad
66

77

8+
### Snippets
9+
10+
Use snippets to quickly generate test files.
11+
12+
Open up *Atom* -> *Open Your Snippets*. Add the contents of `snippets.cson` to your global `snippets.cson` file.
13+
14+
Quickly generate tests using the following snippet prefixes:
15+
16+
* mochacr-f - test a function
17+
* mochacr-a - test an array
18+
* mochacr-o - test an object
19+
820
### Test Statements
921

1022
It makes sense to write test statements using 'should', 'must' or negative statements. Remember, the failing test message will be delivered as feedback to the user.

0 commit comments

Comments
 (0)