@@ -2,45 +2,45 @@ const tmi = require('../index.js');
22
33describe ( 'client()' , ( ) => {
44 it ( 'returns a new instance of itself' , ( ) => {
5- const client = tmi . client ( ) ;
6- client . should . be . an . instanceOf ( tmi . client ) ;
5+ const client = tmi . Client ( ) ;
6+ client . should . be . an . instanceOf ( tmi . Client ) ;
77 } ) ;
88
99 it ( 'uses the \'info\' log when debug is set' , ( ) => {
10- const client = new tmi . client ( { options : { debug : true } } ) ;
10+ const client = new tmi . Client ( { options : { debug : true } } ) ;
1111 client . should . be . ok ( ) ;
1212 } ) ;
1313
1414 it ( 'normalize channel names' , ( ) => {
15- const client = new tmi . client ( { channels : [ 'avalonstar' , '#dayvemsee' ] } ) ;
15+ const client = new tmi . Client ( { channels : [ 'avalonstar' , '#dayvemsee' ] } ) ;
1616 client . opts . channels . should . eql ( [ '#avalonstar' , '#dayvemsee' ] ) ;
1717 } ) ;
1818
1919 it ( 'should default secure to true when opts.connection.server and opts.connection.port not set' , ( ) => {
20- let client = new tmi . client ( ) ;
20+ let client = new tmi . Client ( ) ;
2121 client . secure . should . eql ( true ) ;
22- client = new tmi . client ( { connection : { } } ) ;
22+ client = new tmi . Client ( { connection : { } } ) ;
2323 client . secure . should . eql ( true ) ;
2424 } ) ;
2525 it ( 'should default secure to false when opts.connection.server or opts.connection.port set' , ( ) => {
26- let client = new tmi . client ( { connection : { server : 'localhost' } } ) ;
26+ let client = new tmi . Client ( { connection : { server : 'localhost' } } ) ;
2727 client . secure . should . eql ( false ) ;
28- client = new tmi . client ( { connection : { port : 1 } } ) ;
28+ client = new tmi . Client ( { connection : { port : 1 } } ) ;
2929 client . secure . should . eql ( false ) ;
30- client = new tmi . client ( { connection : { server : 'localhost' , port : 1 } } ) ;
30+ client = new tmi . Client ( { connection : { server : 'localhost' , port : 1 } } ) ;
3131 client . secure . should . eql ( false ) ;
3232 } ) ;
3333} ) ;
3434
3535describe ( 'client getters' , ( ) => {
3636 it ( 'gets options' , ( ) => {
3737 const opts = { options : { debug : true } } ;
38- const client = new tmi . client ( opts ) ;
38+ const client = new tmi . Client ( opts ) ;
3939 client . getOptions ( ) . should . eql ( opts ) ;
4040 } ) ;
4141
4242 it ( 'gets channels' , ( ) => {
43- const client = new tmi . client ( ) ;
43+ const client = new tmi . Client ( ) ;
4444 client . getChannels ( ) . should . eql ( [ ] ) ;
4545 } ) ;
4646} ) ;
0 commit comments