mirror of
https://github.com/codex-team/codex.docs.git
synced 2025-07-21 06:09:41 +02:00
20 lines
401 B
JavaScript
20 lines
401 B
JavaScript
|
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', (done) => {
|
||
|
chai
|
||
|
.request(app)
|
||
|
.get('/')
|
||
|
.end((err, res) => {
|
||
|
expect(err).to.be.null;
|
||
|
expect(res).to.have.status(200);
|
||
|
done();
|
||
|
});
|
||
|
});
|
||
|
});
|