Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('General Configuration', inject([PageHeaderConfig], (cog: PageHeaderConfig) => {
cog.home = 'H';
cog.recursiveBreadcrumb = false;
({ fixture, dl, context } = createTestContext(TestComponent));
expect(context.comp.home).toBe('H');
expect(context.comp.autoBreadcrumb).toBe(true);
expect(context.comp.recursiveBreadcrumb).toBe(false);
}));
beforeEach(() => {
({ fixture, dl, context } = createTestContext(TestComponent));
fixture.detectChanges();
});
beforeEach(() => {
({ fixture, dl, context } = createTestContext(TestFormComponent));
page = new SFPage(context.comp);
page.cleanOverlay().prop(dl, context, fixture);
});
beforeEach(() => {
({ fixture, dl, context } = createTestContext(TestComponent));
fixture.detectChanges();
});
beforeEach(() => {
({ fixture, dl, context } = createTestContext(TestFormComponent));
page = new SFPage(context.comp);
page.prop(dl, context, fixture);
});
function createComp() {
({ fixture, dl, context } = createTestContext(TestComponent));
fixture.detectChanges();
page = new PageObject();
}
beforeEach(() => {
({ fixture, dl, context } = createTestContext(TestComponent));
fixture.detectChanges();
});
beforeEach(() => {
({ fixture, dl, context } = createTestContext(TestFormComponent));
page = new SFPage(context.comp);
page.prop(dl, context, fixture);
});
beforeEach(() => {
({ fixture, dl, context } = createTestContext(TestComponent));
fixture.detectChanges();
});
beforeEach(() => {
({ fixture, dl, context } = createTestContext(TestComponent));
fixture.detectChanges();
});