UNPKG

snekfetch

Version:

Just do http requests without all that weird nastiness from other libs

13 lines (9 loc) 256 B
/** * @jest-environment node */ 'use strict'; const { SnekfetchSync, TestRoot } = require('../interop'); test('sync get', SnekfetchSync && (() => { const res = SnekfetchSync.get(`${TestRoot}/get`).end(); expect(res.body).not.toBeUndefined(); }));