File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change 19
19
import { TestBed } from '@angular/core/testing' ;
20
20
21
21
import { SocketService } from './socket.service' ;
22
+ import { doesNotReject } from 'assert' ;
22
23
23
24
describe ( 'SocketService' , ( ) => {
24
25
let socketService : SocketService ;
@@ -49,14 +50,4 @@ describe('SocketService', () => {
49
50
expect ( socketService ) . toBeTruthy ( ) ;
50
51
} ) ;
51
52
52
-
53
- it ( 'should return correct data on subscribe' , ( ) => {
54
- console . log ( 'new test' ) ;
55
- socketService = TestBed . get ( SocketService ) ;
56
- console . log ( 'socket service' , socketService ) ;
57
- // need to check the result based on some mock object to simulate the connection to the webserver
58
- socketService . initSocket ( ) . then ( ( ) => {
59
- console . log ( 'fake socket open' ) ;
60
- } ) ;
61
- } ) ;
62
53
} ) ;
You can’t perform that action at this time.
0 commit comments