We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent abb781a commit 4ce3035Copy full SHA for 4ce3035
__tests__/utils.js
@@ -1,21 +1,5 @@
1
import walk from '../src/walk.js';
2
import http from 'http';
3
-import concat from 'concat-stream';
4
-
5
-export function get(url, callback) {
6
- return new Promise((resolve, reject) => {
7
- http.get(url, function (res) {
8
- res.pipe(
9
- concat(function (text) {
10
- if (res.statusCode >= 400) {
11
- return reject(res.statusCode);
12
- }
13
- resolve(text.toString());
14
- })
15
- );
16
- });
17
18
-}
19
20
export function normalize(comments) {
21
return walk(comments, function (comment) {
0 commit comments