SyntaxFix
Write A Post
Hire A Developer
Questions
As this answer says, you can also just wrap your code in an anonymous function like this:
expect(function(){ model.get('z'); }).to.throw('Property does not exist in model schema.');