File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 11import Echo from '../src/echo' ;
2- import { PusherConnector } from "../src/connector" ;
2+ import { NullConnector , PusherConnector } from "../src/connector" ;
33
44describe ( 'Echo' , ( ) => {
55 test ( 'it will not throw error for supported driver' , ( ) => {
@@ -11,15 +11,12 @@ describe('Echo', () => {
1111 'Broadcaster string pusher is not supported.'
1212 ) ;
1313
14- expect ( ( ) => new Echo ( { broadcaster : PusherConnector } ) ) . not . toThrowError (
15- 'Broadcaster string pusher is not supported.'
16- ) ;
17-
1814 expect ( ( ) => new Echo ( { broadcaster : 'socket.io' } ) ) . not . toThrowError (
1915 'Broadcaster string socket.io is not supported.'
2016 ) ;
2117
2218 expect ( ( ) => new Echo ( { broadcaster : 'null' } ) ) . not . toThrowError ( 'Broadcaster string null is not supported.' ) ;
19+ expect ( ( ) => new Echo ( { broadcaster : NullConnector } ) ) . not . toThrowError ( ) ;
2320
2421 // eslint-disable-next-line
2522 // @ts -ignore
You can’t perform that action at this time.
0 commit comments