mirror of
https://github.com/ColonelParrot/jscanify.git
synced 2025-12-31 14:41:53 +00:00
test: remove callback for extractPaper
This commit is contained in:
parent
03e7e6932a
commit
a4b91dabd2
@ -64,15 +64,14 @@ function test() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it("should extract paper", function (done) {
|
it("should extract paper", function (done) {
|
||||||
scanner.extractPaper(testImage, 386, 500, function (extracted) {
|
const extracted = scanner.extractPaper(testImage, 386, 500);
|
||||||
writeFileSync(
|
writeFileSync(
|
||||||
outputPaths.extracted,
|
outputPaths.extracted,
|
||||||
extracted.toBuffer("image/jpeg")
|
extracted.toBuffer("image/jpeg")
|
||||||
);
|
);
|
||||||
|
|
||||||
assert.ok(existsSync(outputPaths.extracted));
|
assert.ok(existsSync(outputPaths.extracted));
|
||||||
done();
|
done();
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should label corner points", function (done) {
|
it("should label corner points", function (done) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user