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

Commit

Permalink
Update tests to use url instead of providerOrUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
eggplantzzz committed Nov 17, 2021
1 parent 45e3dbe commit 14f7213
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/hdwallet-provider/test/provider.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ describe("HD Wallet Provider", function () {
mnemonic: {
phrase: mnemonicPhrase
},
providerOrUrl: `http://localhost:${port}`
url: `http://localhost:${port}`
});

assert.deepEqual(provider.getAddresses(), truffleDevAccounts);
Expand Down Expand Up @@ -168,7 +168,7 @@ describe("HD Wallet Provider", function () {
"candy maple cake sugar pudding cream honey rich smooth crumble sweet treat";
provider = new HDWalletProvider({
mnemonic: mnemonicPhrase,
providerOrUrl: `http://localhost:${port}`
url: `http://localhost:${port}`
});

assert.deepEqual(provider.getAddresses(), truffleDevAccounts);
Expand Down Expand Up @@ -198,7 +198,7 @@ describe("HD Wallet Provider", function () {
phrase: mnemonicPhrase,
password: "yummy"
},
providerOrUrl: `http://localhost:${port}`
url: `http://localhost:${port}`
});

assert.deepEqual(provider.getAddresses(), accounts);
Expand All @@ -215,7 +215,7 @@ describe("HD Wallet Provider", function () {
mnemonic: {
phrase: mnemonicPhrase
},
providerOrUrl: `http://localhost:${port}`,
url: `http://localhost:${port}`,
// polling interval is unspecified
});
assert.ok(provider.engine,
Expand All @@ -235,7 +235,7 @@ describe("HD Wallet Provider", function () {
mnemonic: {
phrase: mnemonicPhrase
},
providerOrUrl: `http://localhost:${port}`,
url: `http://localhost:${port}`,
// double the default value, for less chatty JSON-RPC
pollingInterval: 8000,
});
Expand Down Expand Up @@ -264,7 +264,7 @@ describe("HD Wallet Provider", function () {

provider = new HDWalletProvider({
privateKeys,
providerOrUrl: `http://localhost:${port}`
url: `http://localhost:${port}`
});
web3.setProvider(provider);

Expand Down Expand Up @@ -327,7 +327,7 @@ describe("HD Wallet Provider", function () {
mnemonic: {
phrase: "I am not a crook"
},
providerOrUrl: "http://localhost:8545"
url: "http://localhost:8545"
});
assert.fail("Should throw on invalid mnemonic");
} catch (e) {
Expand Down

0 comments on commit 14f7213

Please sign in to comment.