UNPKG

@tdb/util

Version:
17 lines (13 loc) 353 B
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); }); });