Skip to content

Commit 940bf55

Browse files
committed
tests(tokens): replace hex literal with design token to satisfy color-no-hex lint
1 parent 84ff85e commit 940bf55

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/components/UI/Tokens/TokenList/TokenListItem/TokenListItem.test.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,9 @@ describe('TokenListItem - Component Rendering Tests for Coverage', () => {
611611
const percentageText = getByTestId(SECONDARY_BALANCE_TEST_ID);
612612
expect(percentageText.props.children).toBe('-3.45%');
613613
// Negative percentage should NOT have success color
614-
expect(percentageText.props.style.color).not.toBe('#457a39');
614+
expect(percentageText.props.style.color).not.toBe(
615+
mockTheme.colors.success.default,
616+
);
615617
});
616618

617619
it('hides percentage change on testnet', () => {

0 commit comments

Comments
 (0)