mirror of
https://github.com/KevinMidboe/moviedb.git
synced 2025-10-29 17:50:25 +00:00
Movie method release_dates added.
This commit is contained in:
@@ -10,7 +10,7 @@ var api;
|
||||
* the proper way to run the test
|
||||
*
|
||||
* npm test --key='{your api key}'
|
||||
*
|
||||
*
|
||||
* @param {[type]} !apiKey || apiKey.length [description]
|
||||
* @return {[type]} [description]
|
||||
*/
|
||||
@@ -61,4 +61,15 @@ describe('moviedb', function() {
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
it ('should get the movie release dates', function(done) {
|
||||
api.movieReleaseDates({id: 209112}, function(err, res) {
|
||||
if (err) done(err);
|
||||
res.should.be.an('object');
|
||||
res.should.have.property('results');
|
||||
res.results.should.be.an('array');
|
||||
assert.equal(res.id, 209112);
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user