-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
72 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
78 changes: 0 additions & 78 deletions
78
...nts/AccountDrawer/AssetsPanel/MultisigPendingAccordion/MultisigSignerTileDisplay.test.tsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { render, screen } from "../../mocks/testUtils"; | ||
import { AddressKind } from "../AddressTile/types"; | ||
import AccountTileIcon from "./AccountTileIcon"; | ||
|
||
const fixture = (addressKind: AddressKind) => <AccountTileIcon addressKind={addressKind} />; | ||
|
||
describe("<AddressTileIcon />", () => { | ||
it("displays the mnemonic icon", () => { | ||
render(fixture({ type: "mnemonic", pkh: "tz1", label: "label" })); | ||
expect(screen.getByTestId("identicon")).toBeInTheDocument(); | ||
}); | ||
|
||
it("displays the social icon", () => { | ||
render(fixture({ type: "social", pkh: "tz1", label: "label" })); | ||
expect(screen.getByTestId("social-icon")).toBeInTheDocument(); | ||
}); | ||
|
||
it("displays the ledger icon", () => { | ||
render(fixture({ type: "ledger", pkh: "tz1", label: "label" })); | ||
expect(screen.getByTestId("ledger-icon")).toBeInTheDocument(); | ||
}); | ||
|
||
it("displays the multisig icon", () => { | ||
render(fixture({ type: "multisig", pkh: "tz1", label: "label" })); | ||
expect(screen.getByTestId("key-icon")).toBeInTheDocument(); | ||
}); | ||
|
||
it("displays the baker icon", () => { | ||
render(fixture({ type: "baker", pkh: "tz1", label: "label" })); | ||
expect(screen.getByTestId("baker-icon")).toBeInTheDocument(); | ||
}); | ||
|
||
it("displays the contact icon", () => { | ||
render(fixture({ type: "contact", pkh: "tz1", label: "label" })); | ||
expect(screen.getByTestId("contact-icon")).toBeInTheDocument(); | ||
}); | ||
it("displays the unknown icon", () => { | ||
render(fixture({ type: "unknown", pkh: "tz1", label: null })); | ||
expect(screen.getByTestId("unknown-contact-icon")).toBeInTheDocument(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters