Added actions to the Apps view of web/gui2
Change-Id: I3d96a324590bee4de0875d4f533cc723c7f6ba52
diff --git a/web/gui2/src/main/webapp/app/view/apps/apps/apps.component.spec.ts b/web/gui2/src/main/webapp/app/view/apps/apps/apps.component.spec.ts
index 1889a44..cddf9ae 100644
--- a/web/gui2/src/main/webapp/app/view/apps/apps/apps.component.spec.ts
+++ b/web/gui2/src/main/webapp/app/view/apps/apps/apps.component.spec.ts
@@ -19,11 +19,14 @@
import { FormsModule } from '@angular/forms';
import { DebugElement } from '@angular/core';
import { By } from '@angular/platform-browser';
+import { HttpClient, HttpErrorResponse } from '@angular/common/http';
import { LogService } from '../../../log.service';
import { AppsComponent } from './apps.component';
import { AppsDetailsComponent } from '../appsdetails/appsdetails.component';
+import { ConfirmComponent } from '../../../fw/layer/confirm/confirm.component';
import { DialogService } from '../../../fw/layer/dialog.service';
+import { FlashComponent } from '../../../fw/layer/flash/flash.component';
import { FnService } from '../../../fw/util/fn.service';
import { IconComponent } from '../../../fw/svg/icon/icon.component';
import { IconService } from '../../../fw/svg/icon.service';
@@ -47,6 +50,8 @@
class MockFnService {}
+class MockHttpClient {}
+
class MockIconService {
loadIconDef() {}
}
@@ -108,10 +113,18 @@
TestBed.configureTestingModule({
imports: [ BrowserAnimationsModule, FormsModule ],
- declarations: [ AppsComponent, IconComponent, AppsDetailsComponent, TableFilterPipe ],
+ declarations: [
+ AppsComponent,
+ ConfirmComponent,
+ IconComponent,
+ AppsDetailsComponent,
+ TableFilterPipe,
+ FlashComponent
+ ],
providers: [
{ provide: DialogService, useClass: MockDialogService },
{ provide: FnService, useValue: fs },
+ { provide: HttpClient, useClass: MockHttpClient },
{ provide: IconService, useClass: MockIconService },
{ provide: KeyService, useClass: MockKeyService },
{ provide: LionService, useFactory: (() => {