fix: failing fetchResource test (#187)

I think was a fixture problem
pull/192/head
Adam Pash 6 years ago committed by GitHub
parent 4478338046
commit 96640e3564
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

File diff suppressed because one or more lines are too long

@ -22,7 +22,7 @@ describe('fetchResource(url)', () => {
});
it('returns a buffer as its body', async () => {
const url = 'https://www.washingtonpost.com/news/post-nation/wp/2016/11/05/a-vile-and-disgusting-act-officer-accused-of-giving-fecal-sandwich-to-homeless-man-is-fired/';
const url = 'http://www.nytimes.com/2016/08/16/upshot/the-state-of-the-clinton-trump-race-is-it-over.html?_r=0';
const result = await fetchResource(url);
assert.equal(typeof result.body, 'object');

@ -49,7 +49,8 @@ export function record(name, options = {}) {
// eslint-disable-next-line no-console
console.log(
`This is disabled for browser/node interop. To capture fixutres,
open ${'`src/test-helpers.js`'} and comment out lines 53 and 54.`
open ${'`src/test-helpers.js`'} and comment out lines 55 and 56 and
uncomment fs import at top of file.`
);
// const text = `const nock = require('nock');\n${has_fixtures.join('\n')}`;
// fs.writeFile(fp, text, done);

Loading…
Cancel
Save