Skip to content

Commit

Permalink
test: update tesseract.js test for v4 (vercel#1864)
Browse files Browse the repository at this point in the history
  • Loading branch information
some1chan authored Mar 22, 2023
1 parent 4fe0b4d commit 265c00e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dictionary/tesseract.js.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module.exports = {
pkg: {
scripts: ['src/node/worker.js'],
scripts: ['src/worker-script/node/index.js'],
},
};
2 changes: 1 addition & 1 deletion test/test-79-npm/tesseract.js/tesseract.js.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var Tesseract = require('tesseract.js');
var image = path.join(__dirname, 'hello.jpg');

Tesseract.recognize(image)
.then(function (data) {
.then(function ({ data }) {
if (data && data.text && typeof data.text === 'string') {
if (data.text.toLowerCase().indexOf('hello') >= 0) {
console.log('ok');
Expand Down

0 comments on commit 265c00e

Please sign in to comment.