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.'); }); });