const chai = require('chai');

const should = chai.should();
const chaiHttp = require('chai-http');

const server = require('../index.js');

chai.use(chaiHttp);

describe('Testing HappyHour API Routes', () => {

  describe('GET /api', () => {
    it('should respond with a JSON response', (done) => {
      done();
    });
  });
});

require('dotenv').config();

const chai = require('chai');
const should = chai.should();
const chaiHTTP = require('chai-http');
const server = require('../index.js');

const environment = process.env.NODE_ENV;
const configuration = require('../../knexfile.js')[environment];
const db = require('knex')(configuration);

chai.use(chaiHTTP);

describe('Testing HappyHour API Routes', () => {
  beforeEach(done => {
    db.migrate.rollback().then(() => {
      db.migrate.latest().then(() => {
        db.seed.run().then(() => {
          done();
        });
      });
    });
  });

  describe('GET /api/v1/happyhours', () => {
    it('does a thing', done => {
      done();
    });
  });
});

Add base test setup for happy hours endpoints.