1describe('createMap', () => {
2 it('should throw an error if no contents were sent as argument', () => {
3 expect(() => createMap()).to.throw('You have to send a list of things to map.');
4 });
5 });
1expect(model.get.bind(model, 'z')).to.throw('Property does not exist in model schema.');
2expect(model.get.bind(model, 'z')).to.throw(new Error('Property does not exist in model schema.'));