mirror of
https://github.com/ansible/awx.git
synced 2026-05-16 22:07:36 -02:30
Fixes unit test failures
This commit is contained in:
@@ -30,15 +30,24 @@ describe('Components | Layout', () => {
|
|||||||
let controller;
|
let controller;
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
const mockResponse = {
|
const mockOrgAdminResponse = {
|
||||||
data: {
|
data: {
|
||||||
count: 3
|
count: 3
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const mockNotificationAdminResponse = {
|
||||||
|
data: {
|
||||||
|
count: 1
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
controller = element.controller('atLayout');
|
controller = element.controller('atLayout');
|
||||||
$httpBackend.when('GET', /admin_of_organizations/)
|
$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', () => {
|
xit('$scope.$on($stateChangeSuccess) should assign toState name to currentState', () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user