test(core): fix unit test assertion (#8456)

Refs #8403
This commit is contained in:
Vladimír Gorej
2023-03-08 13:55:39 +01:00
committed by GitHub
parent aca53e3902
commit cab47a36c8

View File

@@ -1493,7 +1493,7 @@ describe("utils", () => {
it("throws error when server url contains non-transcluded server variables", () => {
const buildUrlThunk = () => buildUrl(urlRelativeToHost, specUrl, { selectedServer: serverUrlWithVariables })
expect(buildUrlThunk).toThrow(/^Invalid base URL/)
expect(buildUrlThunk).toThrow(/^Invalid port/)
})
})