@@ -67,24 +67,24 @@ function parent(node) {
67
67
function root ( node , ancestor ) {
68
68
parent ( node ) ;
69
69
70
- assert . equal ( ancestor , undefined , '`root` should not have a parent' ) ;
70
+ assert . strictEqual ( ancestor , undefined , '`root` should not have a parent' ) ;
71
71
}
72
72
73
73
function list ( node ) {
74
74
parent ( node ) ;
75
75
76
76
if ( node . loose != null ) {
77
- assert . equal ( typeof node . loose , 'boolean' , '`loose` must be `boolean`' ) ;
77
+ assert . strictEqual ( typeof node . loose , 'boolean' , '`loose` must be `boolean`' ) ;
78
78
}
79
79
80
80
if ( node . ordered != null ) {
81
- assert . equal ( typeof node . ordered , 'boolean' , '`ordered` must be `boolean`' ) ;
81
+ assert . strictEqual ( typeof node . ordered , 'boolean' , '`ordered` must be `boolean`' ) ;
82
82
}
83
83
84
84
if ( ! node . ordered ) {
85
85
assert . ok ( node . start == null , 'unordered lists must not have `start`' ) ;
86
86
} else if ( node . start != null ) {
87
- assert . equal ( typeof node . start , 'number' , 'ordered lists must have `start`' ) ;
87
+ assert . strictEqual ( typeof node . start , 'number' , 'ordered lists must have `start`' ) ;
88
88
assert . ok ( node . start >= 0 , '`start` must be gte `0`' ) ;
89
89
}
90
90
}
@@ -93,11 +93,11 @@ function listItem(node) {
93
93
parent ( node ) ;
94
94
95
95
if ( node . loose != null ) {
96
- assert . equal ( typeof node . loose , 'boolean' , '`loose` must be `boolean`' ) ;
96
+ assert . strictEqual ( typeof node . loose , 'boolean' , '`loose` must be `boolean`' ) ;
97
97
}
98
98
99
99
if ( node . checked != null ) {
100
- assert . equal ( typeof node . checked , 'boolean' , '`checked` must be `boolean`' ) ;
100
+ assert . strictEqual ( typeof node . checked , 'boolean' , '`checked` must be `boolean`' ) ;
101
101
}
102
102
}
103
103
@@ -112,65 +112,65 @@ function code(node) {
112
112
unist . text ( node ) ;
113
113
114
114
if ( node . lang != null ) {
115
- assert . equal ( typeof node . lang , 'string' , '`lang` must be `string`' ) ;
115
+ assert . strictEqual ( typeof node . lang , 'string' , '`lang` must be `string`' ) ;
116
116
}
117
117
}
118
118
119
119
function footnoteDefinition ( node ) {
120
120
parent ( node ) ;
121
121
122
- assert . equal ( typeof node . identifier , 'string' , '`footnoteDefinition` must have `identifier`' ) ;
122
+ assert . strictEqual ( typeof node . identifier , 'string' , '`footnoteDefinition` must have `identifier`' ) ;
123
123
}
124
124
125
125
function definition ( node ) {
126
126
unist . void ( node ) ;
127
127
128
- assert . equal ( typeof node . identifier , 'string' , '`identifier` must be `string`' ) ;
128
+ assert . strictEqual ( typeof node . identifier , 'string' , '`identifier` must be `string`' ) ;
129
129
130
130
if ( node . url != null ) {
131
- assert . equal ( typeof node . url , 'string' , '`url` must be `string`' ) ;
131
+ assert . strictEqual ( typeof node . url , 'string' , '`url` must be `string`' ) ;
132
132
}
133
133
134
134
if ( node . title != null ) {
135
- assert . equal ( typeof node . title , 'string' , '`title` must be `string`' ) ;
135
+ assert . strictEqual ( typeof node . title , 'string' , '`title` must be `string`' ) ;
136
136
}
137
137
}
138
138
139
139
function link ( node ) {
140
140
parent ( node ) ;
141
141
142
142
if ( node . url != null ) {
143
- assert . equal ( typeof node . url , 'string' , '`url` must be `string`' ) ;
143
+ assert . strictEqual ( typeof node . url , 'string' , '`url` must be `string`' ) ;
144
144
}
145
145
146
146
if ( node . title != null ) {
147
- assert . equal ( typeof node . title , 'string' , '`title` must be `string`' ) ;
147
+ assert . strictEqual ( typeof node . title , 'string' , '`title` must be `string`' ) ;
148
148
}
149
149
}
150
150
151
151
function image ( node ) {
152
152
unist . void ( node ) ;
153
153
154
154
if ( node . url != null ) {
155
- assert . equal ( typeof node . url , 'string' , '`url` must be `string`' ) ;
155
+ assert . strictEqual ( typeof node . url , 'string' , '`url` must be `string`' ) ;
156
156
}
157
157
158
158
if ( node . alt != null ) {
159
- assert . equal ( typeof node . alt , 'string' , '`alt` must be `string`' ) ;
159
+ assert . strictEqual ( typeof node . alt , 'string' , '`alt` must be `string`' ) ;
160
160
}
161
161
162
162
if ( node . title != null ) {
163
- assert . equal ( typeof node . title , 'string' , '`title` must be `string`' ) ;
163
+ assert . strictEqual ( typeof node . title , 'string' , '`title` must be `string`' ) ;
164
164
}
165
165
}
166
166
167
167
function linkReference ( node ) {
168
168
parent ( node ) ;
169
169
170
- assert . equal ( typeof node . identifier , 'string' , '`identifier` must be `string`' ) ;
170
+ assert . strictEqual ( typeof node . identifier , 'string' , '`identifier` must be `string`' ) ;
171
171
172
172
if ( node . referenceType != null ) {
173
- assert . notEqual (
173
+ assert . notStrictEqual (
174
174
[ 'shortcut' , 'collapsed' , 'full' ] . indexOf ( node . referenceType ) ,
175
175
- 1 ,
176
176
'`referenceType` must be `shortcut`, `collapsed`, or `full`'
@@ -181,18 +181,18 @@ function linkReference(node) {
181
181
function imageReference ( node ) {
182
182
unist . void ( node ) ;
183
183
184
- assert . equal (
184
+ assert . strictEqual (
185
185
typeof node . identifier ,
186
186
'string' ,
187
187
'`identifier` must be `string`'
188
188
) ;
189
189
190
190
if ( node . alt != null ) {
191
- assert . equal ( typeof node . alt , 'string' , '`alt` must be `string`' ) ;
191
+ assert . strictEqual ( typeof node . alt , 'string' , '`alt` must be `string`' ) ;
192
192
}
193
193
194
194
if ( node . referenceType != null ) {
195
- assert . notEqual (
195
+ assert . notStrictEqual (
196
196
[ 'shortcut' , 'collapsed' , 'full' ] . indexOf ( node . referenceType ) ,
197
197
- 1 ,
198
198
'`referenceType` must be `shortcut`, `collapsed`, or `full`'
@@ -203,7 +203,7 @@ function imageReference(node) {
203
203
function footnoteReference ( node ) {
204
204
unist . void ( node ) ;
205
205
206
- assert . equal ( typeof node . identifier , 'string' , '`identifier` must be `string`' ) ;
206
+ assert . strictEqual ( typeof node . identifier , 'string' , '`identifier` must be `string`' ) ;
207
207
}
208
208
209
209
function table ( node ) {
@@ -226,7 +226,7 @@ function table(node) {
226
226
val = align [ index ] ;
227
227
228
228
if ( val != null ) {
229
- assert . notEqual (
229
+ assert . notStrictEqual (
230
230
[ 'left' , 'right' , 'center' ] . indexOf ( val ) ,
231
231
- 1 ,
232
232
'each align in table must be `null, \'left\', \'right\', \'center\'`'
0 commit comments