Skip to content

Commit 266707f

Browse files
committed
test(stake,earn): fix undefined color token in GraphCursor test and replace remaining hex literals in mUSD conversion status tests to satisfy color-no-hex
1 parent faf8c6c commit 266707f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/components/UI/Earn/hooks/useMusdConversionStatus.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@ describe('useMusdConversionStatus', () => {
186186
variant: ToastVariants.Icon as const,
187187
iconName: IconName.Danger,
188188
hasNoTimeout: false,
189-
iconColor: '#000000',
190-
backgroundColor: '#FFFFFF',
189+
iconColor: mockTheme.colors.icon.default,
190+
backgroundColor: mockTheme.colors.background.default,
191191
hapticsType: NotificationFeedbackType.Error,
192192
labelOptions: [{ label: 'Withdrawal failed', isBold: true }],
193193
}),

app/components/UI/Stake/components/PoolStakingLearnMoreModal/InteractiveTimespanChart/GraphCursor/GraphCursor.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ describe('GraphCursor', () => {
1212
const MOCK_CURRENT_X = 2;
1313
const MOCK_X = () => 73;
1414
const MOCK_Y = () => 33.17441726994484;
15-
const MOCK_COLOR = mockTheme.brandColors.green600;
15+
const MOCK_COLOR = mockTheme.colors.success.default;
1616

1717
it('render matches snapshot', () => {
1818
const props: GraphCursorProps = {

0 commit comments

Comments
 (0)