@@ -67,24 +67,24 @@ function parent(node) {
6767function root ( node , ancestor ) {
6868 parent ( node ) ;
6969
70- assert . equal ( ancestor , undefined , '`root` should not have a parent' ) ;
70+ assert . strictEqual ( ancestor , undefined , '`root` should not have a parent' ) ;
7171}
7272
7373function list ( node ) {
7474 parent ( node ) ;
7575
7676 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`' ) ;
7878 }
7979
8080 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`' ) ;
8282 }
8383
8484 if ( ! node . ordered ) {
8585 assert . ok ( node . start == null , 'unordered lists must not have `start`' ) ;
8686 } 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`' ) ;
8888 assert . ok ( node . start >= 0 , '`start` must be gte `0`' ) ;
8989 }
9090}
@@ -93,11 +93,11 @@ function listItem(node) {
9393 parent ( node ) ;
9494
9595 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`' ) ;
9797 }
9898
9999 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`' ) ;
101101 }
102102}
103103
@@ -112,65 +112,65 @@ function code(node) {
112112 unist . text ( node ) ;
113113
114114 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`' ) ;
116116 }
117117}
118118
119119function footnoteDefinition ( node ) {
120120 parent ( node ) ;
121121
122- assert . equal ( typeof node . identifier , 'string' , '`footnoteDefinition` must have `identifier`' ) ;
122+ assert . strictEqual ( typeof node . identifier , 'string' , '`footnoteDefinition` must have `identifier`' ) ;
123123}
124124
125125function definition ( node ) {
126126 unist . void ( node ) ;
127127
128- assert . equal ( typeof node . identifier , 'string' , '`identifier` must be `string`' ) ;
128+ assert . strictEqual ( typeof node . identifier , 'string' , '`identifier` must be `string`' ) ;
129129
130130 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`' ) ;
132132 }
133133
134134 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`' ) ;
136136 }
137137}
138138
139139function link ( node ) {
140140 parent ( node ) ;
141141
142142 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`' ) ;
144144 }
145145
146146 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`' ) ;
148148 }
149149}
150150
151151function image ( node ) {
152152 unist . void ( node ) ;
153153
154154 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`' ) ;
156156 }
157157
158158 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`' ) ;
160160 }
161161
162162 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`' ) ;
164164 }
165165}
166166
167167function linkReference ( node ) {
168168 parent ( node ) ;
169169
170- assert . equal ( typeof node . identifier , 'string' , '`identifier` must be `string`' ) ;
170+ assert . strictEqual ( typeof node . identifier , 'string' , '`identifier` must be `string`' ) ;
171171
172172 if ( node . referenceType != null ) {
173- assert . notEqual (
173+ assert . notStrictEqual (
174174 [ 'shortcut' , 'collapsed' , 'full' ] . indexOf ( node . referenceType ) ,
175175 - 1 ,
176176 '`referenceType` must be `shortcut`, `collapsed`, or `full`'
@@ -181,18 +181,18 @@ function linkReference(node) {
181181function imageReference ( node ) {
182182 unist . void ( node ) ;
183183
184- assert . equal (
184+ assert . strictEqual (
185185 typeof node . identifier ,
186186 'string' ,
187187 '`identifier` must be `string`'
188188 ) ;
189189
190190 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`' ) ;
192192 }
193193
194194 if ( node . referenceType != null ) {
195- assert . notEqual (
195+ assert . notStrictEqual (
196196 [ 'shortcut' , 'collapsed' , 'full' ] . indexOf ( node . referenceType ) ,
197197 - 1 ,
198198 '`referenceType` must be `shortcut`, `collapsed`, or `full`'
@@ -203,7 +203,7 @@ function imageReference(node) {
203203function footnoteReference ( node ) {
204204 unist . void ( node ) ;
205205
206- assert . equal ( typeof node . identifier , 'string' , '`identifier` must be `string`' ) ;
206+ assert . strictEqual ( typeof node . identifier , 'string' , '`identifier` must be `string`' ) ;
207207}
208208
209209function table ( node ) {
@@ -226,7 +226,7 @@ function table(node) {
226226 val = align [ index ] ;
227227
228228 if ( val != null ) {
229- assert . notEqual (
229+ assert . notStrictEqual (
230230 [ 'left' , 'right' , 'center' ] . indexOf ( val ) ,
231231 - 1 ,
232232 'each align in table must be `null, \'left\', \'right\', \'center\'`'
0 commit comments