Skip to content
This repository was archived by the owner on Aug 8, 2020. It is now read-only.

Commit 333a623

Browse files
committed
update snippets per our assert name changes
avajs/ava#686 avajs/ava#716
1 parent f057eed commit 333a623

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

Diff for: readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Included are some [snippets](snippets/ava.json) useful for writing AVA tests.
2020

2121
Start writing a snippet's `prefix` and then press <kbd>Tab ↹</kbd> to expand the snippet.
2222

23-
Snippets are fuzzy matched, so you can for example just write `tnok` to get the `t.notOk()` snippet.
23+
Snippets are fuzzy matched, so you can for example just write `tde` to get the `t.deepEqual()` snippet.
2424

2525

2626
## Related

Diff for: snippets/assertions.json

+12-12
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
"prefix": "t.fail",
99
"body": "t.fail(${1:'${2:message}'});"
1010
},
11-
"t.ok()": {
12-
"prefix": "t.ok",
13-
"body": "t.ok(${1:value}${2:, '${3:message}'});"
11+
"t.truthy()": {
12+
"prefix": "t.truthy",
13+
"body": "t.truthy(${1:value}${2:, '${3:message}'});"
1414
},
15-
"t.notOk()": {
16-
"prefix": "t.notOk",
17-
"body": "t.notOk(${1:value}${2:, '${3:message}'});"
15+
"t.falsy()": {
16+
"prefix": "t.falsy",
17+
"body": "t.falsy(${1:value}${2:, '${3:message}'});"
1818
},
1919
"t.true()": {
2020
"prefix": "t.true",
@@ -32,13 +32,13 @@
3232
"prefix": "t.not",
3333
"body": "t.not(${1:value}, ${2:expected}${3:, '${4:message}'});"
3434
},
35-
"t.same()": {
36-
"prefix": "t.same",
37-
"body": "t.same(${1:value}, ${2:expected}${3:, '${4:message}'});"
35+
"t.deepEqual()": {
36+
"prefix": "t.deepEqual",
37+
"body": "t.deepEqual(${1:value}, ${2:expected}${3:, '${4:message}'});"
3838
},
39-
"t.notSame()": {
40-
"prefix": "t.notSame",
41-
"body": "t.notSame(${1:value}, ${2:expected}${3:, '${4:message}'});"
39+
"t.notDeepEqual()": {
40+
"prefix": "t.notDeepEqual",
41+
"body": "t.notDeepEqual(${1:value}, ${2:expected}${3:, '${4:message}'});"
4242
},
4343
"t.throws()": {
4444
"prefix": "t.throws",

0 commit comments

Comments
 (0)