-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cd4e55a
commit 114cde0
Showing
4 changed files
with
73 additions
and
6 deletions.
There are no files selected for viewing
15 changes: 14 additions & 1 deletion
15
packages/ua-utils-evm-hardhat-test/test/task/oapp/__data__/configs/invalid.config.001.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,14 @@ | ||
export default []; | ||
const { EndpointId } = require('@layerzerolabs/lz-definitions'); | ||
|
||
module.exports = { | ||
contracts: [ | ||
{ | ||
eid: EndpointId.EON_MAINNET, | ||
contractName: 'DefaultOApp', | ||
}, | ||
{ | ||
eid: 'Invalid EndpointId', | ||
contractName: 'DefaultOApp', | ||
}, | ||
], | ||
}; |
22 changes: 22 additions & 0 deletions
22
packages/ua-utils-evm-hardhat-test/test/task/oapp/__snapshots__/wire.test.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`task/oapp/wire should fail with a malformed JS file (001) 1`] = ` | ||
[Error: Config from file '/app/packages/ua-utils-evm-hardhat-test/test/task/oapp/__data__/configs/invalid.config.001.js' is malformed. Please fix the following errors: | ||
contracts: | ||
- Invalid input | ||
- Invalid input, | ||
connections: | ||
- Required] | ||
`; | ||
|
||
exports[`task/oapp/wire should fail with an empty JS file 1`] = ` | ||
[Error: Config from file '/app/packages/ua-utils-evm-hardhat-test/test/task/oapp/__data__/configs/empty.config.js' is malformed. Please fix the following errors: | ||
contracts: | ||
- Required, | ||
connections: | ||
- Required] | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters