ldapjs.test.js
401 Bytes
'use strict';
const mock = require('egg-mock');
describe('test/ldapjs.test.js', () => {
let app;
before(() => {
app = mock.app({
baseDir: 'apps/ldapjs-test',
});
return app.ready();
});
after(() => app.close());
afterEach(mock.restore);
it('should GET /', () => {
return app.httpRequest()
.get('/')
.expect('hi, ldapjs')
.expect(200);
});
});