Example #1
0
 it('should be failed with config file is not JSON', function() {
   var argv = ['node', 'bin/bot.js', '-c', 'test/fixture/config/config.js', '-s'];
   main = new Main(argv);
   return expect(main.getPromisedBot()).to.be.rejected;
 });
Example #2
0
 it('should return a promised bot', function() {
   var argv = ['node', 'bin/bot.js', '-c', 'test/fixture/config/config.json', '-s'];
   main = new Main(argv);
   return expect(main.getPromisedBot()).to.eventually.have.property('start').that.is.a('function');
 });
Example #3
0
 it('should be done with config file', function() {
   var argv = ['node', 'bin/bot.js', '-c', 'test/fixture/config/config.json', '-s'];
   main = new Main(argv);
   return expect(main.getPromisedBot()).to.be.fulfilled;
 });