Skip to content

Commit 7618985

Browse files
committed
(#500) Add support for new color finder and match results which return results other than Region
1 parent a21df03 commit 7618985

File tree

2 files changed

+230
-90
lines changed

2 files changed

+230
-90
lines changed

lib/screen.class.spec.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ import {
1616
import { OptionalSearchParameters } from "./optionalsearchparameters.class";
1717
import { NoopLogProvider } from "./provider/log/noop-log-provider.class";
1818
import { TextQuery, WindowQuery } from "./query.class";
19-
import { TextFinderInterface } from "./provider/text-finder.interface";
20-
import { WindowFinderInterface } from "./provider/window-finder.interface";
19+
import { TextFinderInterface } from "./provider";
20+
import { WindowFinderInterface } from "./provider";
2121

2222
jest.mock("jimp", () => {});
2323

@@ -159,7 +159,7 @@ describe("Screen.", () => {
159159

160160
// THEN
161161
await expect(result).rejects.toThrowError(
162-
/find requires an Image, a text query or a window query.*/
162+
/find requires an Image, a text query, a color query or a window query.*/
163163
);
164164
});
165165

@@ -532,7 +532,7 @@ describe("Screen.", () => {
532532

533533
// THEN
534534
await expect(result).rejects.toThrowError(
535-
/findAll requires an Image, a text query or a window query.*/
535+
/findAll requires an Image, a text query, a color query or a window query.*/
536536
);
537537
});
538538

0 commit comments

Comments
 (0)