Gitignore coverage, additional db config.

This commit is contained in:
mike.rode
2019-02-24 13:15:42 -06:00
parent eb75d01710
commit b8d6eecb0f
60 changed files with 181 additions and 7615 deletions

View File

@@ -3,19 +3,12 @@ import nock from 'nock';
import app from '../../../../index';
import responses from './mocks/plexResponses';
import { PlexSection, User, PlexLibrary } from '../../../../server/db/models';
import truncate from '../../../truncate';
import { seed, truncate } from '../../../../server/db/scripts';
// before(() => truncate('PlexSection'));
describe('ImportData', () => {
before(() => {
User.upsert(
{
firstName: 'Mike',
lastName: 'Rode',
email: 'michaelrode44@gmail.com',
},
{ where: { email: 'micahelrode44@gmail.com' } },
);
seed('User');
});
describe('GET /plex/import/sections', async () => {
it('should find and store sections in the database first', async () => {