Skip to content

Commit

Permalink
Update test cases
Browse files Browse the repository at this point in the history
Signed-off-by: Riyadh Al Nur <riyadhalnur@verticalaxisbd.com>
  • Loading branch information
riyadhalnur committed Nov 29, 2017
1 parent de34c12 commit 77e79cb
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions tests/tests.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
'use strict';

const chai = require('chai');
chai.should();

const chaiAsPromised = require('chai-as-promised');
const weather = require('../index.js');

chai.use(chaiAsPromised);
chai.should();

describe('Weather', () => {
it('should get the weather', (done) => {
weather([], (err, result) => {
result.should.exist;
done();
});
});
it('should get the weather', () => {
return weather([]).should.be.fulfilled.then(res => {
res.data.should.be.an.instanceOf(Object);
});
});
});

0 comments on commit 77e79cb

Please sign in to comment.