Skip to content

Commit c6c309e

Browse files
committed
(#500) Add test for the new color-finder queries in screen.class.spec.ts
1 parent 1e798ff commit c6c309e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/screen.class.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -639,10 +639,10 @@ describe("Screen.", () => {
639639
},
640640
};
641641

642-
const findMatchMock = jest.fn(() => Promise.resolve(matchResult));
642+
const findMatchMock = jest.fn(() => Promise.resolve([matchResult]));
643643
providerRegistryMock.getColorFinder = jest.fn(() =>
644644
mockPartial<ColorFinderInterface>({
645-
findMatch: findMatchMock,
645+
findMatches: findMatchMock,
646646
})
647647
);
648648
providerRegistryMock.getLogProvider = () => new NoopLogProvider();

0 commit comments

Comments
 (0)