3axap4eHko/apidly

View on GitHub
src/__tests__/index.ts

Summary

Maintainability
A
0 mins
Test Coverage
import * as Module from '../index';

describe('Module test suite', () => {
  it('Should export functions', () => {
    expect(typeof Module.Client).toEqual('function');
    expect(typeof Module.createClient).toEqual('function');
    expect(typeof Module.Endpoint).toEqual('function');
    expect(typeof Module.createEndpoint).toEqual('function');
    expect(typeof Module.formRequest).toEqual('function');
    expect(typeof Module.textResponse).toEqual('function');
    expect(typeof Module.jsonRequest).toEqual('function');
    expect(typeof Module.jsonResponse).toEqual('function');
  });
});