Skip to content

Commit

Permalink
chore: adds test for isInitialized
Browse files Browse the repository at this point in the history
  • Loading branch information
brayn003 committed Jan 13, 2025
1 parent e537db5 commit 8e2b3ef
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,24 @@ describe("QuickActionsView Component", () => {
jest.clearAllMocks();
});

it("should not render QuickActionsView when isInitialized is false", () => {
const props = {
...defaultProps,
isInitialized: false,
};

render(
<ThemeProvider theme={theme}>
<QuickActionsView {...props} />
</ThemeProvider>,
);

expect(screen.queryByTestId("connect-button")).not.toBeInTheDocument();
expect(
screen.queryByTestId("t--git-quick-actions-commit"),
).not.toBeInTheDocument();
});

it("should render ConnectButton when isConnected is false", () => {
render(
<ThemeProvider theme={theme}>
Expand Down

0 comments on commit 8e2b3ef

Please sign in to comment.