mirror of
https://github.com/logos-storage/logos-storage-contracts-eth.git
synced 2026-01-03 22:03:08 +00:00
16 lines
371 B
JavaScript
16 lines
371 B
JavaScript
|
|
module.exports = {
|
||
|
|
assertDeploymentRejectedWithCustomError: async function (
|
||
|
|
customError,
|
||
|
|
deploymentPromise,
|
||
|
|
) {
|
||
|
|
const error = await expect(deploymentPromise).to.be.rejected
|
||
|
|
|
||
|
|
expect(error)
|
||
|
|
.to.have.property("message")
|
||
|
|
.that.contains(
|
||
|
|
customError,
|
||
|
|
`Expected error ${expectedError}, but got ${error.message}`,
|
||
|
|
)
|
||
|
|
},
|
||
|
|
}
|