Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
describe('ContainersComponent', () => {
let component: ContainersComponent;
let fixture: ComponentFixture;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ContainersComponent],
}).compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(ContainersComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
UiModule,
NotesModule,
AngularFireModule.initializeApp(environment.firebase, 'firestarter'),
AngularFirestoreModule,
AngularFireAuthModule,
AngularFireStorageModule
],
declarations: [AppComponent]
}).compileComponents();
}));
it('should create the app', async(() => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.debugElement.componentInstance;
expect(app).toBeTruthy();
}));
it(`should have as title 'app'`, async(() => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.debugElement.componentInstance;
expect(app.title).toEqual('app');
}));
});
describe('SemiStrictNavigationMode', () => {
let wizardTest: WizardTestComponent;
let wizardTestFixture: ComponentFixture;
let wizardState: WizardState;
let navigationMode: NavigationMode;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [WizardTestComponent],
imports: [ArchwizardModule]
}).compileComponents();
}));
beforeEach(() => {
wizardTestFixture = TestBed.createComponent(WizardTestComponent);
wizardTestFixture.detectChanges();
wizardTest = wizardTestFixture.componentInstance;
wizardState = wizardTestFixture.debugElement.query(By.css('aw-wizard')).injector.get(WizardState);
navigationMode = wizardState.navigationMode;
});
it('should create', () => {
describe('StartEndDateComponent', () => {
let component: StartEndDateComponent;
let fixture: ComponentFixture;
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
SharedModule,
NoopAnimationsModule
]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(StartEndDateComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
describe('KubernetesNodePodsComponent', () => {
let component: KubernetesNodePodsComponent;
let fixture: ComponentFixture;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [KubernetesNodePodsComponent],
imports: BaseTestModules,
providers: [BaseKubeGuid, KubernetesEndpointService, KubernetesNodeService]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(KubernetesNodePodsComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
describe('UserMediaComponent', () => {
let component: UserMediaComponent;
let fixture: ComponentFixture;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ UserMediaComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(UserMediaComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
describe('Rule4Component', () => {
let component: Rule4Component;
let fixture: ComponentFixture;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [Rule4Component]
}).compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(Rule4Component);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
describe('NamespaceViewWrapperComponent', () => {
let namespace: NamespaceViewWrapperComponent;
let fixture: ComponentFixture;
beforeEach(async(() => {
TestBed
.configureTestingModule({
imports: [
RouterTestingModule.withRoutes([]),
Fabric8CommonModule,
FormsModule,
MomentModule,
ModalModule,
RestangularModule.forRoot(),
KubernetesStoreModule,
TestAppModule
],
declarations: [
NamespaceViewWrapperComponent,
NamespaceViewToolbarComponent,
NamespaceViewComponent,
new DynamicRadioGroupModel({id: "radioGroup"}),
new DynamicRatingModel({id: "rating"}),
new DynamicSelectModel({id: "select", options: [{value: "One"}, {value: "Two"}], value: "One"}),
new DynamicSliderModel({id: "slider"}),
new DynamicSwitchModel({id: "switch"}),
new DynamicTextAreaModel({id: "textarea"}),
new DynamicTimePickerModel({id: "timepicker"})
],
testModel = formModel[11],
formGroup: FormGroup,
fixture: ComponentFixture,
component: DynamicKendoFormControlContainerComponent,
debugElement: DebugElement,
testElement: DebugElement;
beforeEach(async(() => {
TestBed.overrideModule(BrowserDynamicTestingModule, {
set: {
entryComponents: [DynamicKendoDropdownListComponent]
}
});
TestBed.configureTestingModule({
imports: [
ReactiveFormsModule,
DateInputsModule,
DropDownsModule,
InputsModule,
UploadModule,
describe('LocalizationEditorItemComponent', () => {
let component: LocalizationEditorItemComponent;
let fixture: ComponentFixture;
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
LocalizationEditorModule,
CommonModule
],
declarations: [
TestLocalizationItemComponent
]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(TestLocalizationItemComponent);
component = fixture.debugElement.children[0].componentInstance;
fixture.detectChanges();