Skip to content

Commit

Permalink
fix: Remove redundant test for an impossible state (alert enabled bef…
Browse files Browse the repository at this point in the history
…ore or without migration) as conditions are already tested individually.
  • Loading branch information
httpJunkie committed Dec 19, 2024
1 parent 20cca27 commit ab5c1d7
Showing 1 changed file with 0 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,26 +97,6 @@ describe('SmartTransactionsBannerAlert', () => {
).not.toBeInTheDocument();
});

it('does not render when STX is not opted in', () => {
const notOptedInState = {
metamask: {
alertEnabledness: {
[AlertTypes.smartTransactionsMigration]: true,
},
preferences: {
smartTransactionsOptInStatus: false,
smartTransactionsMigrationApplied: true,
},
},
};
const store = configureStore(notOptedInState);
renderWithProvider(<SmartTransactionsBannerAlert />, store);

expect(
screen.queryByTestId('smart-transactions-banner-alert'),
).not.toBeInTheDocument();
});

it('does not render when migration has not been applied', () => {
const noMigrationState = {
metamask: {
Expand Down

0 comments on commit ab5c1d7

Please sign in to comment.