Skip to content

Commit 0ecce3b

Browse files
committed
Update dev-dependencies
1 parent f0c75a9 commit 0ecce3b

File tree

2 files changed

+28
-28
lines changed

2 files changed

+28
-28
lines changed

index.js

+23-23
Original file line numberDiff line numberDiff line change
@@ -67,24 +67,24 @@ function parent(node) {
6767
function 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

7373
function 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

119119
function 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

125125
function 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

139139
function 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

151151
function 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

167167
function 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) {
181181
function 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) {
203203
function 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

209209
function 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\'`'

package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@
2525
"zwitch": "^1.0.0"
2626
},
2727
"devDependencies": {
28-
"browserify": "^14.0.0",
28+
"browserify": "^16.0.0",
2929
"esmangle": "^1.0.1",
30-
"nyc": "^11.0.0",
31-
"remark-cli": "^4.0.0",
32-
"remark-preset-wooorm": "^3.0.0",
30+
"nyc": "^12.0.0",
31+
"remark-cli": "^5.0.0",
32+
"remark-preset-wooorm": "^4.0.0",
3333
"tape": "^4.0.0",
34-
"xo": "^0.18.0"
34+
"xo": "^0.22.0"
3535
},
3636
"scripts": {
3737
"build-md": "remark . --quiet --frail --output",

0 commit comments

Comments
 (0)