mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 02:50:02 -03:30
Merge pull request #6302 from mabashian/fix-ui-unit-tests
Fixed failing ui unit tests
This commit is contained in:
commit
ea267d0849
@ -31,7 +31,7 @@ describe('Service: QuerySet', () => {
|
||||
// @todo: improve appsource
|
||||
// provide api version via package.json config block
|
||||
$httpBackend
|
||||
.whenGET('/api')
|
||||
.whenGET(/^\/api\/?$/)
|
||||
.respond(200, '');
|
||||
}));
|
||||
|
||||
|
||||
@ -23,7 +23,7 @@ describe('workflowResultsService', () => {
|
||||
let ticks = 0;
|
||||
let ticks_expected = 10;
|
||||
|
||||
workflowResultsService.createOneSecondTimer(moment(), function(time) {
|
||||
workflowResultsService.createOneSecondTimer(moment(), function() {
|
||||
ticks += 1;
|
||||
if (ticks >= ticks_expected) {
|
||||
expect(ticks).toBe(ticks_expected);
|
||||
@ -36,7 +36,7 @@ describe('workflowResultsService', () => {
|
||||
$interval.flush(ticks_expected * 1000);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
describe('destroyTimer()', () => {
|
||||
beforeEach(() => {
|
||||
$interval.cancel = jasmine.createSpy('cancel');
|
||||
@ -56,4 +56,4 @@ describe('workflowResultsService', () => {
|
||||
expect($interval.cancel).toHaveBeenCalledWith(timer);
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@ -80,8 +80,8 @@ describe('Controller: WorkflowAdd', () => {
|
||||
ParseTypeChange = _ParseTypeChange_;
|
||||
ToJSON = _ToJSON_;
|
||||
|
||||
httpBackend
|
||||
.whenGET('/api')
|
||||
$httpBackend
|
||||
.whenGET(/^\/api\/?$/)
|
||||
.respond(200, '');
|
||||
|
||||
$httpBackend
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user