11import React from 'react' ;
22import { fireEvent , render , waitFor } from './test-utils' ;
3- import { grey , List , ListItem , ListItemText , Text , ThemeProvider } from '../src' ;
3+ import { gray , List , ListItem , ListItemText , Text , ThemeProvider } from '../src' ;
44import { StyleSheet , View } from 'react-native' ;
55import { BaseStyles } from '../src/libraries/style/styleTypes' ;
66import { BOTTOM_LARGE_SPACING , BOTTOM_MEDIUM_SPACING , BOTTOM_SMALL_SPACING } from '../src/components/List/constants' ;
@@ -148,7 +148,7 @@ describe('ListItem Component', () => {
148148
149149 const listItem = getByTestId ( mockListItemContainerTestId ) ;
150150 const flattenedStyle = StyleSheet . flatten ( listItem . props . style ) ;
151- expect ( flattenedStyle . backgroundColor ) . toEqual ( grey [ 100 ] ) ;
151+ expect ( flattenedStyle . backgroundColor ) . toEqual ( gray [ 100 ] ) ;
152152 } ) ;
153153
154154 it ( 'should apply the active custom color on the selected item when passed the selected and selectedColor props' , ( ) => {
@@ -198,7 +198,7 @@ describe('ListItem Component', () => {
198198
199199 const listItem = getByTestId ( mockListItemContainerTestId ) ;
200200 const flattenedStyle = StyleSheet . flatten ( listItem . props . style ) ;
201- expect ( flattenedStyle . borderColor ) . toEqual ( grey [ 400 ] ) ;
201+ expect ( flattenedStyle . borderColor ) . toEqual ( gray [ 400 ] ) ;
202202 } ) ;
203203
204204 it ( 'should apply the outline width when outlineWidth prop is passed' , ( ) => {
@@ -208,7 +208,7 @@ describe('ListItem Component', () => {
208208
209209 const listItem = getByTestId ( mockListItemContainerTestId ) ;
210210 const flattenedStyle = StyleSheet . flatten ( listItem . props . style ) ;
211- expect ( flattenedStyle . borderColor ) . toEqual ( grey [ 400 ] ) ;
211+ expect ( flattenedStyle . borderColor ) . toEqual ( gray [ 400 ] ) ;
212212 expect ( flattenedStyle . borderWidth ) . toEqual ( 2 ) ;
213213 } ) ;
214214
@@ -223,12 +223,12 @@ describe('ListItem Component', () => {
223223 expect ( flattenedStyle . borderColor ) . toEqual ( 'red' ) ;
224224 } ) ;
225225
226- it ( 'should apply the grey color when showDefaultBg prop is passed' , ( ) => {
226+ it ( 'should apply the gray color when showDefaultBg prop is passed' , ( ) => {
227227 const { getByTestId } = render ( < ListItem showDefaultBg listItemContainerTestId = { mockListItemContainerTestId } /> ) ;
228228
229229 const listItem = getByTestId ( mockListItemContainerTestId ) ;
230230 const flattenedStyle = StyleSheet . flatten ( listItem . props . style ) ;
231- expect ( flattenedStyle . backgroundColor ) . toEqual ( grey [ 50 ] ) ;
231+ expect ( flattenedStyle . backgroundColor ) . toEqual ( gray [ 50 ] ) ;
232232 } ) ;
233233
234234 it ( 'should apply the soft border radius when softRadius prop passed' , ( ) => {
0 commit comments