Skip to content

Commit 811fed2

Browse files
authored
Fix tests for change in @types/node
Closes micromarkGH-196. Reviewed-by: Titus Wormer <tituswormer@gmail.com>
1 parent 3fae155 commit 811fed2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/util/slow-stream.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export function slowStream(value, encoding) {
2020
if (index === value.length) {
2121
stream.end()
2222
} else {
23-
stream.write(value.slice(index, ++index), encoding, tick)
23+
stream.write(value.slice(index, ++index), encoding || 'utf8', tick)
2424
}
2525
}
2626

0 commit comments

Comments
 (0)