diff --git a/src/modules/__tests__/getOuLevelAndGroupText.spec.js b/src/modules/__tests__/getOuLevelAndGroupText.spec.js index a57a07539..21cb7319b 100644 --- a/src/modules/__tests__/getOuLevelAndGroupText.spec.js +++ b/src/modules/__tests__/getOuLevelAndGroupText.spec.js @@ -61,4 +61,15 @@ describe('getOuLevelAndGroupText', () => { 'Fruit and Veggies groups - Second floor levels' ) }) + + it('grabs name for user orgunits from items when not present in metaData', () => { + filter.items = [ + { id: 'USER_ORGUNIT', name: 'User organisation unit' }, + { id: 'LEVEL-2nd-floor' }, + ] + + expect(getOuLevelAndGroupText(filter, metaData)).toEqual( + 'Second floor levels in User organisation unit' + ) + }) })