-
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.
Merge pull request #459 from trilitech/remove-get-icons-pt1
Remove get icons pt1
- Loading branch information
Showing
9 changed files
with
109 additions
and
269 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
90 changes: 0 additions & 90 deletions
90
.../AccountDrawer/AssetsPanel/MultisigPendingAccordion/MultisigSignerTileDisplay.stories.tsx
This file was deleted.
Oops, something went wrong.
83 changes: 0 additions & 83 deletions
83
...nts/AccountDrawer/AssetsPanel/MultisigPendingAccordion/MultisigSignerTileDisplay.test.tsx
This file was deleted.
Oops, something went wrong.
16 changes: 7 additions & 9 deletions
16
...mponents/AccountDrawer/AssetsPanel/MultisigPendingAccordion/MultisigSignerTileDisplay.tsx
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
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
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(); | ||
}); | ||
}); |
Oops, something went wrong.