Movie method release_dates added.

This commit is contained in:
angelstoone
2016-03-25 18:55:25 +01:00
parent 2b09f631d5
commit 6b7bad48d2
2 changed files with 14 additions and 2 deletions

View File

@@ -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();
});
});
});