Skip to content

Commit

Permalink
fix: remove unnecessary test in favor of relying on type
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Prohaszka <[email protected]>
  • Loading branch information
sprohaszka-ledger committed May 21, 2024
1 parent 2632db6 commit e1a0339
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 16 deletions.
21 changes: 19 additions & 2 deletions libs/coin-modules/coin-cardano/.unimportedrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,32 @@
"entry": [
"src/account.ts",
"src/api/getPools.ts",
"src/bridge/js.ts",
"src/bridge/index.ts",
"src/cli-transaction.ts",
"src/datasets/rawAccount.1.ts",
"src/datasets/scanAccounts.ts",
"src/deviceTransactionConfig.ts",
"src/errors.ts",
"src/specs.ts",
"src/speculos-deviceActions.ts",
"src/transaction.ts",
"src/utils.ts"
],
"ignoreUnimported": []
"ignoreUnimported": [
"src/api/getDelegationInfo.ts",
"src/api/getNetworkInfo.ts",
"src/api/getTransactions.ts",
"src/api/submitTransaction.ts",
"src/hw-getAddress.ts",
"src/js-broadcast.ts",
"src/js-buildTransaction.ts",
"src/js-estimateMaxSpendable.ts",
"src/js-getTransactionStatus.ts",
"src/js-signOperation.ts",
"src/js-synchronisation.ts",
"src/js-transaction.ts",
"src/postSyncPatch.ts",
"src/serialization.ts",
"src/signer.ts"
]
}
5 changes: 0 additions & 5 deletions libs/coin-modules/coin-cardano/src/logic.unit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ import { canStake, isAlreadyStaking } from "./logic";
import { CardanoAccount } from "./types";

describe("canStake", () => {
it("should return false when acc not present", () => {
const noResourcesAcc = {} as CardanoAccount;
expect(canStake(noResourcesAcc)).toEqual(false);
});

it("should return false when acc has no funds", () => {
const accWithNoFunds = {
balance: new BigNumber(0),
Expand Down
18 changes: 9 additions & 9 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e1a0339

Please sign in to comment.