riot-translatebot

A simple riot bot which provides Status about Weblate
git clone git://archive.git.mtrnord.blog/Nordgedanken/riot-translatebot.git
Log | Files | Refs | README | LICENSE

login_test.js (618B)


      1 import chai from 'chai';
      2 import chaiAsPromised from 'chai-as-promised';
      3 import Login from '../lib/login';
      4 import chai_fs from 'chai-fs';
      5 
      6 chai.use(chai_fs);
      7 chai.use(chaiAsPromised);
      8 
      9 const expect = chai.expect;
     10 
     11 chai.should();
     12 
     13 describe('Login', () => {
     14     const mx = new Login;
     15     it('should eventually login', done => {
     16         const client = mx.getClient();
     17         client.should.be.fulfilled.and.notify(done);
     18     });
     19     it('should have generated a device json file', () => {
     20         mx.getClient().then(client => {
     21             return expect('./user_data.json').to.be.a.file().with.json;
     22         });
     23     })
     24 });