You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
425 B
18 lines
425 B
6 years ago
|
const express = require('express');
|
||
|
const path = require('path');
|
||
|
global.expect = require('expect.js');
|
||
|
global.fetch = require('node-fetch');
|
||
|
global.Tesseract = require('../src');
|
||
|
|
||
|
const app = express();
|
||
|
let devServer = null;
|
||
|
|
||
|
global.startServer = (done) => {
|
||
|
app.use('/', express.static(path.resolve(__dirname, '..')));
|
||
|
devServer = app.listen(3000, done);
|
||
|
};
|
||
|
|
||
|
global.stopServer = (done) => {
|
||
|
devServer.close(done);
|
||
|
};
|