Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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(() => {
configureTestSuite(() => {
page = new PageG2().genModule(G2SingleBarModule, TestComponent);
});
beforeEach(fakeAsync(() => {
page = new PageG2().makeModule(G2GaugeModule, TestComponent);
}));
configureTestSuite(() => {
page = new PageG2().genModule(G2TimelineModule, TestComponent);
});
configureTestSuite(() => {
page = new PageG2().genModule(G2WaterWaveModule, TestComponent);
});
beforeEach(fakeAsync(() => {
page = new PageG2().makeModule(G2BarModule, TestComponent);
}));
beforeEach(() => {
({ fixture, context } = createTestContext(TestComponent));
fixture.detectChanges();
page = new PageG2(fixture);
});
configureTestSuite(() => {
page = new PageG2().genModule(G2TagCloudModule, TestComponent);
});
configureTestSuite(() => {
page = new PageG2().genModule(G2MiniAreaModule, TestComponent);
});