Skip to content

Commit

Permalink
updating unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
sirarthurmoney committed Dec 7, 2023
1 parent 825d60f commit 7e4e969
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,8 @@ describe('task: getDefaultConfig', () => {

it('should return default configurations', async () => {
const networks = Object.keys(hre.userConfig.networks ?? {})
const localNetwork = networks.at(0)
assert(localNetwork, 'At least one network must be configured')
const getDefaultConfigTask = await hre.run('getDefaultConfig', { networks: networks.toString() })

const taskRunEnv = await getNetworkRuntimeEnvironment(localNetwork)
const getDefaultConfigTask = await taskRunEnv.run('getDefaultConfig', { networks: networks.toString() })
for (const localNetwork of networks) {
for (const remoteNetwork of networks) {
if (localNetwork === remoteNetwork) continue
Expand Down

0 comments on commit 7e4e969

Please sign in to comment.