import { expect } from 'chai'; import { http } from '.'; describe('http (fetch)', () => { it('has request', () => { expect(http.request).to.be.an.instanceof(Function); }); it('has GET', () => { expect(http.get).to.be.an.instanceof(Function); }); it('has POST', () => { expect(http.post).to.be.an.instanceof(Function); }); });