Changed the api endpoint to one that requires to be logged in.

This commit is contained in:
2018-02-07 14:15:10 +01:00
parent 3ca3c06824
commit 98b10aa693

View File

@@ -8,7 +8,7 @@ describe('As a user I want a forbidden error if the token is malformed', () => {
it('should return 401', () =>
request(app)
.get('/api/v1/plex/requests/all')
.get('/api/v1/pirate/search?query=test')
.set('Authorization', 'maLfOrMed TOKEN')
.expect(401)
.then(response => assert.equal(response.body.error, 'You must be logged in.'))