Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Jan 13, 2024. It is now read-only.

Commit 265c00e

Browse filesBrowse files
authored
test: update tesseract.js test for v4 (#1864)
1 parent 4fe0b4d commit 265c00e
Copy full SHA for 265c00e

File tree

Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed

‎dictionary/tesseract.js.js

Copy file name to clipboardExpand all lines: dictionary/tesseract.js.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
module.exports = {
44
pkg: {
5-
scripts: ['src/node/worker.js'],
5+
scripts: ['src/worker-script/node/index.js'],
66
},
77
};

‎test/test-79-npm/tesseract.js/tesseract.js.js

Copy file name to clipboardExpand all lines: test/test-79-npm/tesseract.js/tesseract.js.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ var Tesseract = require('tesseract.js');
66
var image = path.join(__dirname, 'hello.jpg');
77

88
Tesseract.recognize(image)
9-
.then(function (data) {
9+
.then(function ({ data }) {
1010
if (data && data.text && typeof data.text === 'string') {
1111
if (data.text.toLowerCase().indexOf('hello') >= 0) {
1212
console.log('ok');

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.