commit node_modules

This commit is contained in:
Bret Comnes
2020-02-10 12:50:13 -07:00
parent eb6412a365
commit 13eab06cd3
610 changed files with 203178 additions and 60 deletions

18
node_modules/fetch-errors/test.js generated vendored Normal file
View File

@@ -0,0 +1,18 @@
import tape from 'tape';
import ptape from 'tape-promise';
import { handleResponse } from './main';
import fetch from 'node-fetch';
const test = ptape(tape);
test('handleResponse', async t => {
return fetch('https://api.github.com/users/bcomnes/repos')
.then(response => {
t.ok(response.ok);
return response;
})
.then(handleResponse)
.then(json => {
t.ok(json);
})
.catch(t.error);
});