@condor-labs/ec-events-gateway
Version:
Client to send events to events gateway API
14 lines (10 loc) • 341 B
JavaScript
const { unhandledError } = require('../utils/constants');
describe('contants', () => {
it('Should return an error when a function is called', async () => {
const response = {
error: `unhandled error: this is an error`
};
const error = unhandledError('this is an error');
expect(error).toEqual(response);
});
});