Skip to content

Commit

Permalink
updated tests for new batman movies in db
Browse files Browse the repository at this point in the history
  • Loading branch information
hunterloftis committed May 15, 2013
1 parent 2cdaa0c commit 0648430
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion index.js
Expand Up @@ -48,4 +48,5 @@ function toJSON(str) {
result = JSON.parse(str);
} catch (err) {}
return result;
}
}

2 changes: 1 addition & 1 deletion test/get.test.js
Expand Up @@ -8,7 +8,7 @@ var DIRECT = {
title: 'Batman Returns',
ratings: {
critics_rating: 'Certified Fresh',
critics_score: 78,
critics_score: 81,
audience_rating: 'Upright',
audience_score: 68
}
Expand Down
6 changes: 3 additions & 3 deletions test/search.test.js
Expand Up @@ -8,7 +8,7 @@ var DIRECT = {
title: 'Batman Returns',
ratings: {
critics_rating: 'Certified Fresh',
critics_score: 78,
critics_score: 81,
audience_rating: 'Upright',
audience_score: 68
}
Expand All @@ -19,7 +19,7 @@ describe('search()', function() {
it('should return the match', function(done) {
movies.search('Batman Returns', function(err, results) {
should.not.exist(err);
results.should.have.length(1);
results.should.have.length(2);
results[0].id.should.eql(DIRECT.id);
results[0].title.should.eql(DIRECT.title);
results[0].ratings.should.eql(DIRECT.ratings);
Expand All @@ -31,7 +31,7 @@ describe('search()', function() {
it('should return all matches', function(done) {
movies.search('Batman', function(err, results) {
should.not.exist(err);
results.should.have.length(33);
results.should.have.length(35);
results[0].id.should.be.a('string');
results[0].title.should.be.a('string');
results[0].ratings.should.be.a('object');
Expand Down

0 comments on commit 0648430

Please sign in to comment.