Commit 52d4df8eaf2ca1bc9d75a80333ee2f735c3ae701

Authored by Victor Costa
1 parent 0ca3faec

Fix broken test in main component

Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
src/app/main/main.component.spec.ts
@@ -61,6 +61,7 @@ describe("MainComponent", function () { @@ -61,6 +61,7 @@ describe("MainComponent", function () {
61 quickCreateComponent({ directives: [MainComponentParent], template: "<parent></parent>" }) 61 quickCreateComponent({ directives: [MainComponentParent], template: "<parent></parent>" })
62 .then((fixture) => { 62 .then((fixture) => {
63 fixture.debugElement.getLocal("$httpBackend").expectGET("/api/v1/environments/1/boxes").respond(200, {}); 63 fixture.debugElement.getLocal("$httpBackend").expectGET("/api/v1/environments/1/boxes").respond(200, {});
  64 + fixture.debugElement.getLocal("$httpBackend").expectGET("/api/v1/tasks?all_pending=true&per_page=5&status=1").respond(200, {});
64 localFixture = fixture; 65 localFixture = fixture;
65 // get the $state service to navigate between routes 66 // get the $state service to navigate between routes
66 $state = fixture.debugElement.getLocal("$state"); 67 $state = fixture.debugElement.getLocal("$state");