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; });
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'); });
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; });