Skip to content

Commit fd94079

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

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-
findMatches: findMatchMock,
645+
findMatch: findMatchMock,
646646
})
647647
);
648648
providerRegistryMock.getLogProvider = () => new NoopLogProvider();

0 commit comments

Comments
 (0)