Skip to content

Commit

Permalink
fix: test validateSymbol
Browse files Browse the repository at this point in the history
  • Loading branch information
salimtb committed Oct 16, 2024
1 parent 79ac1c2 commit 03546d6
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -856,6 +856,16 @@ describe('NetworkSettings', () => {
expect(wrapper.state('blockExplorerUrls').length).toBe(1);
expect(getCurrentStateSpy).toHaveBeenCalled();
});

it('should not validate the symbol if useSafeChainsListValidation is false', async () => {
const instance = wrapper.instance();

const validSymbol = 'ETH';

await instance.validateSymbol(validSymbol);

expect(instance.state.warningSymbol).toBeUndefined(); // No warning for valid symbol
});
});

describe('NetworkSettings componentDidMount', () => {
Expand Down

0 comments on commit 03546d6

Please sign in to comment.