diff --git a/tests/detect.test.js b/tests/detect.test.js index 4d49d86..d739505 100644 --- a/tests/detect.test.js +++ b/tests/detect.test.js @@ -15,32 +15,6 @@ const getWorker = options => ( }) ); -before(function cb(done) { - this.timeout(30000); - const load = () => ( - loadLang({ - lang: 'osd', - cacheMethod: 'write', - ...loadLangOptions, - }).then(() => { - done(); - }) - ); - if (typeof startServer !== 'undefined') { - startServer(load); - } else { - load(); - } -}); - -after((done) => { - if (typeof stopServer !== 'undefined') { - stopServer(done); - } else { - done(); - } -}); - describe('detect()', () => { it('should detect OSD', (done) => { [ diff --git a/tests/recognize.test.js b/tests/recognize.test.js index c7559d5..012532b 100644 --- a/tests/recognize.test.js +++ b/tests/recognize.test.js @@ -22,34 +22,7 @@ const getWorker = options => ( }) ); -before(function cb(done) { - this.timeout(30000); - const load = () => ( - loadLang({ - lang: 'eng+chi_tra', - cacheMethod: 'write', - ...loadLangOptions, - }).then(() => { - done(); - }) - ); - if (typeof startServer !== 'undefined') { - startServer(load); - } else { - load(); - } -}); - -after((done) => { - if (typeof stopServer !== 'undefined') { - stopServer(done); - } else { - done(); - } -}); - -describe('recognize()',() => { - +describe('recognize()', () => { describe('should recognize different langs', () => { [ { name: 'chinese.png', lang: 'chi_tra', ans: CHINESE_TEXT },