import { async, ComponentFixture, TestBed } from '@angular/core/testing';
-
+import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { CacheAdminComponent } from './cache-admin.component';
-
+import { MatExpansionModule } from '@angular/material';
+import { HttpClient, HttpClientModule } from '@angular/common/http';
describe('CacheAdminComponent', () => {
let component: CacheAdminComponent;
let fixture: ComponentFixture<CacheAdminComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
- declarations: [ CacheAdminComponent ]
+ imports:[MatExpansionModule, HttpClientModule],
+ declarations: [ CacheAdminComponent ],
+ schemas: [CUSTOM_ELEMENTS_SCHEMA]
})
.compileComponents();
}));
*/
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
-
+import {FormsModule} from '@angular/forms';
import { NewMenuComponent } from './new-menu.component';
+import { HttpClientTestingModule } from '@angular/common/http/testing';
+import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
+import { RouterModule } from '@angular/router';
+import { RouterTestingModule } from '@angular/router/testing';
+import { CookieService } from 'ngx-cookie-service';
+
+
describe('NewMenuComponent', () => {
let component: NewMenuComponent;
beforeEach(async(() => {
TestBed.configureTestingModule({
- declarations: [ NewMenuComponent ]
+ declarations: [ NewMenuComponent ],
+ imports:[FormsModule, HttpClientTestingModule,RouterTestingModule],
+ providers:[NgbActiveModal,CookieService]
})
.compileComponents();
}));