📜  chai 测试抛出错误 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:05.134000             🧑  作者: Mango

代码示例2
expect(model.get.bind(model, 'z')).to.throw('Property does not exist in model schema.');
expect(model.get.bind(model, 'z')).to.throw(new Error('Property does not exist in model schema.'));