Skip to content

Commit

Permalink
chore: Add a dummy test to ua-utils-test-v2
Browse files Browse the repository at this point in the history
  • Loading branch information
janjakubnanista committed Nov 16, 2023
1 parent baaac4c commit 4207fd5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
1 change: 0 additions & 1 deletion packages/ua-utils-test-v2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
"@layerzerolabs/lz-definitions": "~1.5.58",
"@layerzerolabs/lz-evm-sdk-v1": "~1.5.58",
"@layerzerolabs/lz-evm-sdk-v2": "~1.5.58",
"@layerzerolabs/ua-utils": "~0.0.15",
"@nomiclabs/hardhat-ethers": "^2.2.3",
"@types/chai-as-promised": "^7.1.7",
"@types/mocha": "^10.0.1",
Expand Down
20 changes: 14 additions & 6 deletions packages/ua-utils-test-v2/test/config.test.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,26 @@
import { getDefaultConfig } from "@layerzerolabs/ua-utils"
import hre from "hardhat"
import { expect } from "chai"
import { describe } from "mocha"
import { NetworkEnvironment, createGetNetworkEnvironment } from "@layerzerolabs/hardhat-utils"

const NETWORK_NAMES = ["vengaboys", "britney"]

describe("config", () => {
NETWORK_NAMES.forEach((networkName) => {
const getEnvironment = createGetNetworkEnvironment(hre)

describe(`Network '${networkName}`, () => {
it("should return the default config", async () => {
const config = await getDefaultConfig(networkName)
let environment: NetworkEnvironment

before(async () => {
environment = await getEnvironment(networkName)
})

it("should have an endpoint deployed", async () => {
const endpoint = await environment.getContract("EndpointV2")
const endpointId = await endpoint.eid()

expect(config).to.equal({
// FIXME
})
expect(endpointId).to.eql(environment.network.config.endpointId)
})
})
})
Expand Down

0 comments on commit 4207fd5

Please sign in to comment.