File tree Expand file tree Collapse file tree
packages/fxa-settings/src/components/Settings/ConnectedServices Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -153,8 +153,11 @@ describe('Connected Services', () => {
153153 expect ( result [ result . length - 1 ] ) . toHaveTextContent ( '6 months ago' ) ;
154154 } ) ;
155155
156- const { sortedAndUniqueClients, groupedByName } =
157- sortAndFilterConnectedClients ( MOCK_SERVICES ) ;
156+ const { sortedAndUniqueClients } = sortAndFilterConnectedClients ( MOCK_SERVICES ) ;
157+
158+ const monitorClients = MOCK_SERVICES . filter (
159+ ( item ) => item . name === 'Mozilla Monitor'
160+ ) ;
158161
159162 expect ( sortedAndUniqueClients . length ) . toEqual ( 13 ) ;
160163
@@ -167,7 +170,7 @@ describe('Connected Services', () => {
167170 ( item ) => item . name === 'Mozilla Monitor'
168171 ) [ 0 ] . lastAccessTime
169172 ) . toEqual ( 1570736983000 ) ;
170- expect ( groupedByName [ 'Mozilla Monitor' ] . length ) . toEqual ( 2 ) ;
173+ expect ( monitorClients . length ) . toEqual ( 2 ) ;
171174 } ) ;
172175
173176 it ( 'should show the monitor icon and link' , async ( ) => {
You can’t perform that action at this time.
0 commit comments