Add test to add documentation

Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>

Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
This commit is contained in:
Iku-tursoandJanne Savolainen committed 2022-06-22 13:54:34 +03:00
1 parent 5762b1963b
commit d7f60a712f
1 file changed
+5 -1
@@ -91,7 +91,7 @@ describe("technical: resolve-proxy-from-electron", () => {
});
describe("given there are only destroyed Lens windows, when called with URL", () => {
let error: unknown;
let error: any;
beforeEach(async () => {
di.override(
@@ -127,6 +127,10 @@ describe("technical: resolve-proxy-from-electron", () => {
}
});
it("throws error", () => {
expect(error.message).toBe('Tried to resolve proxy for "some-url", but no browser window was available');
});
it("logs error", () => {
expect(logErrorMock).toHaveBeenCalledWith("Error resolving proxy", error);
});