16 lines
371 B
JavaScript
Raw Normal View History

2025-05-16 20:37:20 +02:00
module.exports = {
assertDeploymentRejectedWithCustomError: async function (
customError,
deploymentPromise,
) {
const error = await expect(deploymentPromise).to.be.rejected
2025-05-16 20:37:20 +02:00
expect(error)
.to.have.property("message")
.that.contains(
customError,
`Expected error ${expectedError}, but got ${error.message}`,
)
},
}