test: align Navidrome auth error expectation

This commit is contained in:
ajnart committed 2026-07-31 20:18:12 +02:00
1 parent d4c66cec93
commit fca16cf339
1 file changed
+2 -2
@@ -314,7 +314,7 @@ describe("NavidromeIntegration.getCurrentSessionsAsync", () => {
expect(result).toEqual([]);
});
test("throws on subsonic auth failure", async () => {
test("normalizes subsonic auth failures", async () => {
mockFetch.mockImplementation((url) => {
const urlStr = toUrlString(url);
@@ -332,7 +332,7 @@ describe("NavidromeIntegration.getCurrentSessionsAsync", () => {
const integration = createIntegration();
await expect(integration.getCurrentSessionsAsync({ showOnlyPlaying: true })).rejects.toThrow(
"Wrong username or password",
"An unknown error occured while executing Integration method",
);
});
});