This repository has been archived by the owner on Aug 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
assertions.sublime-completions
73 lines (73 loc) · 1.97 KB
/
assertions.sublime-completions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{
"scope": "source.js, source.jsx, source.ts",
"completions": [
{
"trigger": "t.pass",
"contents": "t.pass(${1/.+/'/}${1:message}${1/.+/'/});"
},
{
"trigger": "t.fail",
"contents": "t.fail(${1/.+/'/}${1:message}${1/.+/'/});"
},
{
"trigger": "t.truthy",
"contents": "t.truthy(${1:value}${2/.+/, '/}${2:message}${2/.+/'/});"
},
{
"trigger": "t.falsy",
"contents": "t.falsy(${1:value}${2/.+/, '/}${2:message}${2/.+/'/});"
},
{
"trigger": "t.true",
"contents": "t.true(${1:value}${2/.+/, '/}${2:message}${2/.+/'/});"
},
{
"trigger": "t.false",
"contents": "t.false(${1:value}${2/.+/, '/}${2:message}${2/.+/'/});"
},
{
"trigger": "t.is",
"contents": "t.is(${1:value}, ${2:expected}${3/.+/, '/}${3:message}${3/.+/'/});"
},
{
"trigger": "t.not",
"contents": "t.not(${1:value}, ${2:expected}${3/.+/, '/}${3:message}${3/.+/'/});"
},
{
"trigger": "t.deepEqual",
"contents": "t.deepEqual(${1:value}, ${2:expected}${3/.+/, '/}${3:message}${3/.+/'/});"
},
{
"trigger": "t.notDeepEqual",
"contents": "t.notDeepEqual(${1:value}, ${2:expected}${3/.+/, '/}${3:message}${3/.+/'/});"
},
{
"trigger": "t.throws",
"contents": "t.throws(${1:function}${2/.+/, '/}${2:message}${2/.+/'/});"
},
{
"trigger": "t.notThrows",
"contents": "t.notThrows(${1:function}${2/.+/, '/}${2:message}${2/.+/'/});"
},
{
"trigger": "t.throwsAsync",
"contents": "t.throws(${1:promise|function}${2/.+/, '/}${2:message}${2/.+/'/});"
},
{
"trigger": "t.notThrowsAsync",
"contents": "t.notThrows(${1:promise|function}${2/.+/, '/}${2:message}${2/.+/'/});"
},
{
"trigger": "t.regex",
"contents": "t.regex(${1:contents}, ${2:regex}${3/.+/, '/}${3:message}${3/.+/'/});"
},
{
"trigger": "t.notRegex",
"contents": "t.notRegex(${1:contents}, ${2:regex}${3/.+/, '/}${3:message}${3/.+/'/});"
},
{
"trigger": "t.snapshot",
"contents": "t.snapshot(${1:expected}${3/.+/, '/}${2:message}${2/.+/'/});"
}
]
}