Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroppy committed May 7, 2019
1 parent 90029fd commit d979ed9
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions test/Client.test.js
Expand Up @@ -7,20 +7,20 @@ const helper = require('./helper');
const config = require('./fixtures/client-config/webpack.config');
const runBrowser = require('./helpers/run-browser');

function startProxy(port) {
const proxy = express();
proxy.use(
'/',
httpProxy({
target: 'http://localhost:9001',
ws: true,
changeOrigin: true,
})
);
return proxy.listen(port);
}

describe('Client code', () => {
function startProxy(port) {
const proxy = express();
proxy.use(
'/',
httpProxy({
target: 'http://localhost:9001',
ws: true,
changeOrigin: true,
})
);
return proxy.listen(port);
}

beforeAll((done) => {
const options = {
compress: true,
Expand All @@ -47,8 +47,10 @@ describe('Client code', () => {
proxy = startProxy(9000);
});

afterAll(() => {
proxy.close();
afterAll((done) => {
proxy.close(() => {
done;
});
});

it('responds with a 200', (done) => {
Expand Down

0 comments on commit d979ed9

Please sign in to comment.