Tests now suppoer the new list endpoints. Also updated response for interstellar query (movieInfo).

This commit is contained in:
2018-11-01 00:18:54 +01:00
parent e64c4d5d01
commit 87c76e3f1d
6 changed files with 10 additions and 462 deletions

View File

@@ -7,12 +7,12 @@ const popularMoviesSuccess = require('test/fixtures/popular-movies-success-respo
describe('As a user I want to get popular movies', () => {
before(() => resetDatabase());
before(() => createCacheEntry('p:movie:1', popularMoviesSuccess));
before(() => createCacheEntry('pm:1', popularMoviesSuccess));
it('should return 200 with the information', () =>
request(app)
.get('/api/v1/tmdb/list/popular')
.get('/api/v2/movie/popular')
.expect(200)
.then(response => assert.equal(response.body.results.length, 20))
);
});
});