From 2592613bde3db5092f3921099a4386ab49d6aa07 Mon Sep 17 00:00:00 2001 From: mabashian Date: Tue, 28 Aug 2018 11:01:04 -0400 Subject: [PATCH] Fixes unit test failures --- awx/ui/test/unit/components/layout.unit.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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', () => {