import React from 'react' import { shallow } from 'enzyme' import DegradedNotice from '../DegradedNotice' it('renders without crashing', () => { shallow() }) it('shows one service', () => { const comp = shallow() expect(comp.contains(
1 service is unreachable
)).toEqual(true) expect( comp.contains(

elstat is having trouble contacting first.

) ).toEqual(true) }) it('shows multiple services', () => { const comp = shallow( ) expect(comp.contains(
3 services are unreachable
)).toEqual( true ) expect( comp.contains(

elstat is having trouble contacting{' '} first, second, third.

) ).toEqual(true) })