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

Commit

Permalink
Add required auth token in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Morley Zhi committed Jan 13, 2020
1 parent cc61985 commit 8694532
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/transfers/DepositProvider.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ describe("fetchFinalFee", () => {

// manually set info
provider.info = { deposit: info, withdraw: {} };
provider.authToken = "test";

expect(
await provider.fetchFinalFee({
Expand Down Expand Up @@ -75,6 +76,7 @@ describe("fetchFinalFee", () => {
);

provider.info = { deposit: info, withdraw: {} };
provider.authToken = "test";

expect(
await provider.fetchFinalFee({
Expand Down Expand Up @@ -138,6 +140,7 @@ describe("watchOneTransaction", () => {
transferServer,
StellarSdk.Keypair.random().publicKey(),
);
provider.authToken = "test";

await provider.fetchSupportedAssets();
});
Expand Down Expand Up @@ -511,6 +514,8 @@ describe("watchAllTransactions", () => {
StellarSdk.Keypair.random().publicKey(),
);

provider.authToken = "test";

await provider.fetchSupportedAssets();
});

Expand Down Expand Up @@ -732,6 +737,7 @@ describe("validateFields", () => {
},
withdraw: {},
};
provider.authToken = "test";

return provider;
}
Expand Down

0 comments on commit 8694532

Please sign in to comment.