mirror of
https://github.com/mjrode/WhatToWatch.git
synced 2026-05-04 11:39:09 -05:00
Add qloo API endpoints
This commit is contained in:
@@ -3,15 +3,20 @@ import * as nocks from '../../../nocks';
|
||||
import app from '../../../../index';
|
||||
|
||||
describe('Users', () => {
|
||||
describe('GET /api/v1/plex/auth', async () => {
|
||||
it('should get plex auth token', done => {
|
||||
describe('GET /api/plex/auth', async () => {
|
||||
it.only('should get plex auth token', done => {
|
||||
nocks.auth();
|
||||
|
||||
chai
|
||||
.request(app)
|
||||
.get('/api/plex/auth')
|
||||
.query({username: 'username', password: 'password'})
|
||||
.get('/api/plex/token')
|
||||
.query({
|
||||
username: 'username',
|
||||
password: 'password',
|
||||
plexUrl: 'plexserver.com',
|
||||
})
|
||||
.end((err, res) => {
|
||||
console.log(res);
|
||||
res.should.have.status(200);
|
||||
res.body.should.equal('testPlexApiToken');
|
||||
done();
|
||||
|
||||
Reference in New Issue
Block a user