diff --git a/awx/ui/test/unit/components/layout.unit.js b/awx/ui/test/unit/components/layout.unit.js index 76ecf0dcd6..164dfddae8 100644 --- a/awx/ui/test/unit/components/layout.unit.js +++ b/awx/ui/test/unit/components/layout.unit.js @@ -30,15 +30,24 @@ describe('Components | Layout', () => { let controller; beforeEach(() => { - const mockResponse = { + const mockOrgAdminResponse = { data: { count: 3 } }; + const mockNotificationAdminResponse = { + data: { + count: 1 + } + }; + controller = element.controller('atLayout'); $httpBackend.when('GET', /admin_of_organizations/) - .respond(mockResponse); + .respond(mockOrgAdminResponse); + + $httpBackend.when('GET', /roles\/\?role_field=notification_admin_role/) + .respond(mockNotificationAdminResponse); }); xit('$scope.$on($stateChangeSuccess) should assign toState name to currentState', () => {