-
Notifications
You must be signed in to change notification settings - Fork 2
/
asserts.cson
109 lines (82 loc) · 3.04 KB
/
asserts.cson
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# Javascript
'.source.js':
'QUnit: equal':
'prefix': 'equal'
'body': "assert.equal(${4:actual}, ${3:expected}${1:, '${2:message}'});"
'QUnit: deepEqual':
'prefix': 'deepEqual'
'body': "assert.deepEqual(${4:actual}, ${3:expected}${1:, '${2:message}'});"
'QUnit: notDeepEqual':
'prefix': 'notDeepEqual'
'body': "assert.notDeepEqual(${4:actual}, ${3:expected}${1:, '${2:message}'});"
'QUnit: notEqual':
'prefix': 'notEqual'
'body': "assert.notEqual(${4:actual}, ${3:expected}${1:, '${2:message}'});"
'QUnit: notPropEqual':
'prefix': 'notPropEqual'
'body': "assert.notPropEqual(${4:actual}, ${3:expected}${1:, '${2:message}'});"
'QUnit: notStrictEqual':
'prefix': 'notStrictEqual'
'body': "assert.notStrictEqual(${4:actual}, ${3:expected}${1:, '${2:message}'});"
'QUnit: ok':
'prefix': 'ok'
'body': "assert.ok(${3:state}${1:, '${2:message}'});"
'QUnit: notOk':
'prefix': 'notOk'
'body': "assert.notOk(${3:state}${1:, '${2:message}'});"
'QUnit: propEqual':
'prefix': 'propEqual'
'body': "assert.propEqual(${4:actual}, ${3:expected}${1:, '${2:message}'});"
'QUnit: strictEqual':
'prefix': 'strictEqual'
'body': "assert.strictEqual(${4:actual}, ${3:expected}${1:, '${2:message}'});"
'QUnit: throws':
'prefix': 'throws'
'body': "assert.throws(${4:block}, ${3:expected}${1:, '${2:message}'});"
'QUnit: async':
'prefix': 'async'
'body': "assert.async();${1}"
'QUnit: expect':
'prefix': 'expect'
'body': "assert.expect(${1:amount});"
# Coffee
'.source.coffee':
'QUnit: equal':
'prefix': 'equal'
'body': "assert.equal ${4:actual}, ${3:expected}${1:, '${2:message}'}"
'QUnit: deepEqual':
'prefix': 'deepEqual'
'body': "assert.deepEqual ${4:actual}, ${3:expected}${1:, '${2:message}'}"
'QUnit: notDeepEqual':
'prefix': 'notDeepEqual'
'body': "assert.notDeepEqual ${4:actual}, ${3:expected}${1:, '${2:message}'}"
'QUnit: notEqual':
'prefix': 'notEqual'
'body': "assert.notEqual ${4:actual}, ${3:expected}${1:, '${2:message}'}"
'QUnit: notPropEqual':
'prefix': 'notPropEqual'
'body': "assert.notPropEqual ${4:actual}, ${3:expected}${1:, '${2:message}'}"
'QUnit: notStrictEqual':
'prefix': 'notStrictEqual'
'body': "assert.notStrictEqual ${4:actual}, ${3:expected}${1:, '${2:message}'}"
'QUnit: ok':
'prefix': 'ok'
'body': "assert.ok ${3:state}${1:, '${2:message}'}"
'QUnit: notOk':
'prefix': 'notOk'
'body': "assert.notOk ${3:state}${1:, '${2:message}'}"
'QUnit: propEqual':
'prefix': 'propEqual'
'body': "assert.propEqual ${4:actual}, ${3:expected}${1:, '${2:message}'}"
'QUnit: strictEqual':
'prefix': 'strictEqual'
'body': "assert.strictEqual ${4:actual}, ${3:expected}${1:, '${2:message}'}"
'QUnit: throws':
'prefix': 'throws'
'body': "assert.throws ${4:block}, ${3:expected}${1:, '${2:message}'}"
'QUnit: async':
'prefix': 'async'
'body': "assert.async()${1}"
'QUnit: expect':
'prefix': 'expect'
'body': "assert.expect ${1:amount}"