should throw an error in mocha code example
Example: mocha should throw error
describe('createMap', () => {
it('should throw an error if no contents were sent as argument', () => {
expect(() => createMap()).to.throw('You have to send a list of things to map.');
});
});