Reference Source Test

test/unit/data/resources/errors.spec.js

const moxios = require('moxios');
const Errors = require('../../../../src/data/resources/errors');

/** @test {Errors} */
describe('Unit::Errors', () => {
  const testApiKey = 'testKey';
  const testSecret = 'testSecret';
  const errorsInstance = new Errors(testApiKey, testSecret);

  beforeEach(() => {
    moxios.install(errorsInstance.http);
  });

  afterEach(() => {
    moxios.uninstall(errorsInstance.http);
  });
});