diff --git a/.travis.yml b/.travis.yml index 8df5618..892559b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,7 @@ language: node_js node_js: - "lts/*" # Use LTS version + +script: + - npm run lint + - npm test diff --git a/src/common/workerUtils.js b/src/common/workerUtils.js index e3c652e..65692ab 100644 --- a/src/common/workerUtils.js +++ b/src/common/workerUtils.js @@ -225,7 +225,7 @@ const handleRecognize = ({ TessModule._free(ptr); res.resolve({ files, ...result }); } catch (err) { - res.reject({ err: err }); + res.reject({ err }); } }) ))