Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit 02bb578

Browse files
Add one more assert statement
1 parent 03797be commit 02bb578

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

packages/core/test/lib/command-utils.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,16 @@ describe("command-utils", function () {
4444
cfg.networks.crazyTimeNetwork.customUserProperty,
4545
expectedNetworkConfig.customUserProperty
4646
);
47+
assert.equal(
48+
cfg.networks.crazyTimeNetwork.provider,
49+
expectedNetworkConfig.provider
50+
);
4751
});
4852

4953
it("returns a config with a network object having the specified url property ", function () {
50-
const cfg = deriveConfigEnvironment(
51-
config,
52-
"anyTimeNetwork",
53-
"http://localhost:5555"
54-
);
55-
assert.equal(cfg.networks["anyTimeNetwork"].url, "http://localhost:5555");
54+
const testUrl = "http://localhost:5555";
55+
const cfg = deriveConfigEnvironment(config, "anyTimeNetwork", testUrl);
56+
assert.equal(cfg.networks["anyTimeNetwork"].url, testUrl);
5657
});
5758

5859
it("returns a config with a network object having user specified properties", function () {

0 commit comments

Comments
 (0)