1
0
Fork 0
mirror of https://github.com/codex-team/codex.docs.git synced 2025-07-19 13:19:42 +02:00
codex.docs/test/express.js

18 lines
367 B
JavaScript
Raw Normal View History

const { app } = require('../bin/www');
const chai = require('chai');
const chaiHTTP = require('chai-http');
const { expect } = chai;
chai.use(chaiHTTP);
describe('Express app', () => {
it('App is available', async () => {
let agent = chai.request.agent(app);
const result = await agent
.get('/');
expect(result).to.have.status(200);
});
});