test: dedupe synology route mock read

This commit is contained in:
Peter Steinberger
2026-05-13 07:23:33 +01:00
parent 8879c671e3
commit ef78fc9534

View File

@@ -87,7 +87,7 @@ describe("Synology channel wiring integration", () => {
);
expect(registerPluginHttpRouteMock).toHaveBeenCalledTimes(1);
const firstCall = registerPluginHttpRouteMock.mock.calls.at(0);
const firstCall = registerPluginHttpRouteMock.mock.calls[0];
if (!firstCall) {
throw new Error("Expected registerPluginHttpRoute to be called");
}