Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.

Commit bf75796

Browse files
cppwfsghillert
authored andcommitted
Added toBeTruthy tests to Analytics components
Added toBeTruthy Tests to the following analytics components dashboard counters counter-header resolves #461 #462
1 parent d071207 commit bf75796

File tree

3 files changed

+74
-0
lines changed

3 files changed

+74
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
2+
import { CounterHeaderComponent } from './counter-header.component';
3+
4+
describe('CounterHeaderComponent', () => {
5+
let component: CounterHeaderComponent;
6+
let fixture: ComponentFixture<CounterHeaderComponent>;
7+
8+
beforeEach(async(() => {
9+
TestBed.configureTestingModule({
10+
declarations: [ CounterHeaderComponent ]
11+
})
12+
.compileComponents();
13+
}));
14+
15+
beforeEach(() => {
16+
fixture = TestBed.createComponent(CounterHeaderComponent);
17+
component = fixture.componentInstance;
18+
});
19+
20+
it('should be created', () => {
21+
expect(component).toBeTruthy();
22+
});
23+
});
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
2+
import { CountersComponent } from './counters.component';
3+
import {AnalyticsModule} from '../analytics.module';
4+
5+
describe('CounterComponent', () => {
6+
let component: CountersComponent;
7+
let fixture: ComponentFixture<CountersComponent>;
8+
9+
beforeEach(async(() => {
10+
TestBed.configureTestingModule({
11+
declarations: [ ],
12+
imports: [AnalyticsModule]
13+
})
14+
.compileComponents();
15+
}));
16+
17+
beforeEach(() => {
18+
fixture = TestBed.createComponent(CountersComponent);
19+
component = fixture.componentInstance;
20+
});
21+
22+
it('should be created', () => {
23+
expect(component).toBeTruthy();
24+
});
25+
});
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
2+
import { DashboardComponent } from './dashboard.component';
3+
import {BusyModule} from 'tixif-ngx-busy';
4+
import {AnalyticsModule} from '../analytics.module';
5+
6+
describe('DashboardComponent', () => {
7+
let component: DashboardComponent;
8+
let fixture: ComponentFixture<DashboardComponent>;
9+
10+
beforeEach(async(() => {
11+
TestBed.configureTestingModule({
12+
declarations: [ ],
13+
imports: [BusyModule, AnalyticsModule]
14+
})
15+
.compileComponents();
16+
}));
17+
18+
beforeEach(() => {
19+
fixture = TestBed.createComponent(DashboardComponent);
20+
component = fixture.componentInstance;
21+
});
22+
23+
it('should be created', () => {
24+
expect(component).toBeTruthy();
25+
});
26+
});

0 commit comments

Comments
 (0)