UNPKG

@condor-labs/ec-events-gateway

Version:
14 lines (10 loc) 341 B
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); }); });