Browse Source

Update tests to use local corePath

pull/443/head
jeromewu 5 years ago
parent
commit
a008d0780a
  1. 1
      tests/constants.js

1
tests/constants.js

@ -5,6 +5,7 @@ const OPTIONS = { @@ -5,6 +5,7 @@ const OPTIONS = {
cacheMethod: 'readOnly',
langPath: 'http://localhost:3000/tests/assets/traineddata',
cachePath: './tests/assets/traineddata',
corePath: '../node_modules/tesseract.js-core/tesseract-core.wasm.js',
...(IS_BROWSER ? { workerPath: '../dist/worker.dev.js' } : {}),
};
const SIMPLE_TEXT = 'Tesseract.js\n';

Loading…
Cancel
Save