-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Riyadh Al Nur <riyadhalnur@verticalaxisbd.com>
- Loading branch information
1 parent
de34c12
commit 77e79cb
Showing
1 changed file
with
9 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
}); | ||
}); | ||
}); |