test: align Navidrome auth error expectation
This commit is contained in:
1 parent
d4c66cec93
commit
fca16cf339
1 file changed
+2
-2
@@ -314,7 +314,7 @@ describe("NavidromeIntegration.getCurrentSessionsAsync", () => {
|
|||||||
expect(result).toEqual([]);
|
expect(result).toEqual([]);
|
||||||
});
|
});
|
||||||
|
|
||||||
test("throws on subsonic auth failure", async () => {
|
test("normalizes subsonic auth failures", async () => {
|
||||||
mockFetch.mockImplementation((url) => {
|
mockFetch.mockImplementation((url) => {
|
||||||
const urlStr = toUrlString(url);
|
const urlStr = toUrlString(url);
|
||||||
|
|
||||||
@@ -332,7 +332,7 @@ describe("NavidromeIntegration.getCurrentSessionsAsync", () => {
|
|||||||
const integration = createIntegration();
|
const integration = createIntegration();
|
||||||
|
|
||||||
await expect(integration.getCurrentSessionsAsync({ showOnlyPlaying: true })).rejects.toThrow(
|
await expect(integration.getCurrentSessionsAsync({ showOnlyPlaying: true })).rejects.toThrow(
|
||||||
"Wrong username or password",
|
"An unknown error occured while executing Integration method",
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
Reference in new issue
Block a user