Skip to content

Commit 7b61194

Browse files
committed
test cases and code Review
1 parent 8b5fe5f commit 7b61194

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

client/src/app/dashboard/dashboard-overview/dashboard-overview.component.spec.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,8 @@ describe('DashboardOverviewComponent', () => {
5050
fixture.destroy();
5151
});
5252

53-
/*
54-
5553
it('should create', () => {
5654
expect(component).toBeTruthy();
5755
});
58-
*/
56+
5957
});

client/src/app/dashboard/info-center/info-center.component.spec.ts

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,32 +8,27 @@ import {SocketService} from '../../api/api/socket.service';
88
describe('InfoCenterComponent', () => {
99
let component: InfoCenterComponent;
1010
let fixture: ComponentFixture<InfoCenterComponent>;
11-
// let socketMock: SocketService;
1211

1312
beforeEach(async(() => {
14-
TestBed.configureTestingModule({
13+
TestBed.configureTestingModule({
1514
declarations: [ InfoCenterComponent],
1615
imports: [
1716
NoopAnimationsModule,
1817
MatPaginatorModule,
1918
MatSortModule,
2019
MatTableModule,
2120
MatIconModule,
22-
],
23-
providers: [
24-
SocketService
2521
]
22+
2623
}).compileComponents();
2724
}));
2825

2926
beforeEach(() => {
3027
fixture = TestBed.createComponent(InfoCenterComponent);
3128
component = fixture.componentInstance;
32-
fixture.detectChanges();
3329
});
3430

35-
/*it('should compile', () => {
36-
socketMock = TestBed.get(SocketService);
31+
it('should compile', () => {
3732
expect(component).toBeTruthy();
38-
});*/
33+
});
3934
});

0 commit comments

Comments
 (0)