mirror of
https://github.com/ansible/awx.git
synced 2026-01-19 13:41:28 -03:30
Fixes unit test failures
This commit is contained in:
parent
de158cb41d
commit
2592613bde
@ -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', () => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user