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(fakeAsync(() => {
page = new PageG2().makeModule(G2MiniBarModule, TestComponent);
}));
it('should be working', () => {
beforeEach(() => {
page = new PageG2().makeModule(G2PieModule, TestFullComponent, {
dc: false,
});
page.context.inner = 0.1;
page.context.data = [{ x: '1', y: 100 }];
});
it('should be working', fakeAsync(() => {
it('#delay', fakeAsync(() => checkDelay(G2MiniAreaModule, TestComponent)));
});
it('#delay', fakeAsync(() => checkDelay(G2RadarModule, TestComponent)));
});
it('#delay', fakeAsync(() => checkDelay(G2PieModule, TestFullComponent)));
});
it('#delay', fakeAsync(() => checkDelay(G2TimelineModule, TestComponent)));
});
it('#delay', fakeAsync(() => checkDelay(G2GaugeModule, TestComponent)));
});
it('#delay', fakeAsync(() => checkDelay(G2TagCloudModule, TestComponent)));
});
it('#delay', fakeAsync(() => checkDelay(G2WaterWaveModule, TestComponent)));
});