Skip to content

Commit

Permalink
feat(LIVE-9638): tests files and changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
lpaquet-ledger committed May 14, 2024
1 parent a9a8d97 commit 39fab57
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
7 changes: 7 additions & 0 deletions .changeset/cool-pots-film.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"ledger-live-desktop": patch
"live-mobile": patch
"@ledgerhq/live-common": patch
---

Replace static provider info to API
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ describe("fetchCurrencyAll", () => {
data: fetchCurrencyAllMock,
}));

const result = await fetchCurrencyAll({
providers: ["oneinch"],
});
const result = await fetchCurrencyAll({});

expect(result).toStrictEqual(flattenV5CurrenciesAll(fetchCurrencyAllMock));
expect(network as jest.Mock).toHaveBeenCalledWith({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ describe("fetchCurrencyFrom", () => {
}));

const result = await fetchCurrencyFrom({
providers: ["changelly", "cic", "oneinch"],
currencyTo: "bitcoin",
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ describe("fetchCurrencyFrom", () => {
});

const result = await fetchCurrencyTo({
providers: ["changelly", "cic", "oneinch"],
currencyFromId: "bitcoin",
});

Expand All @@ -34,7 +33,6 @@ describe("fetchCurrencyFrom", () => {

try {
await fetchCurrencyTo({
providers: ["changelly", "cic", "oneinch"],
currencyFromId: "bitcoin",
});
} catch (e) {
Expand Down
2 changes: 0 additions & 2 deletions libs/ledger-live-common/src/exchange/swap/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import getCompleteSwapHistory from "./getCompleteSwapHistory";
import initSwap from "./initSwap";
import { postSwapAccepted, postSwapCancelled } from "./postSwapState";
import getExchangeRates from "./getExchangeRates";
import getProviders from "./getProviders";

export { getAvailableProviders } from "../providers";

Expand Down Expand Up @@ -131,7 +130,6 @@ export {
getCompleteSwapHistory,
postSwapAccepted,
getExchangeRates,
getProviders,
postSwapCancelled,
initSwap,
USStates,
Expand Down

0 comments on commit 39fab57

Please sign in to comment.