Skip to content

Commit

Permalink
Fix server in tests. Closes #103 #104
Browse files Browse the repository at this point in the history
  • Loading branch information
Jared Palmer committed Sep 14, 2016
1 parent 2910724 commit 82c6108
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/server_spec.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
/* eslint-env mocha */
import chai, { expect } from 'chai'
import chaiHttp from 'chai-http'
import server from '../server/server.js'
import { createServer } from '../server'

chai.use(chaiHttp)

import fakeDB from '../server/fakeDB.js'

const server = createServer({
nodeEnv: process.env.NODE_ENV,
webConcurrency: process.env.WEB_CONCURRENCY || 1,
port: process.env.PORT || 5000,
timeout: 29000
})

describe('API', () => {
it('should list ALL posts on api/v0/posts GET', (done) => {
chai.request(server)
Expand Down

0 comments on commit 82c6108

Please sign in to comment.