Loading client/src/utils/utils.test.js +12 −0 Original line number Diff line number Diff line Loading @@ -101,4 +101,16 @@ describe("test utils", () => { ]); }); }); describe("test getFullAppUrl", () => { it("should return the full app url", () => { const appUrl = Utils.getFullAppUrl(); expect(appUrl).toBe("http://localhost/"); }); it("should return the full app url", () => { const appUrl = Utils.getFullAppUrl("home"); expect(appUrl).toBe("http://localhost/home"); }); }); }); client/src/utils/utils.ts +1 −0 Original line number Diff line number Diff line Loading @@ -475,4 +475,5 @@ export default { waitForElementToBePresent, wait, mergeObjectListsById, getFullAppUrl, }; Loading
client/src/utils/utils.test.js +12 −0 Original line number Diff line number Diff line Loading @@ -101,4 +101,16 @@ describe("test utils", () => { ]); }); }); describe("test getFullAppUrl", () => { it("should return the full app url", () => { const appUrl = Utils.getFullAppUrl(); expect(appUrl).toBe("http://localhost/"); }); it("should return the full app url", () => { const appUrl = Utils.getFullAppUrl("home"); expect(appUrl).toBe("http://localhost/home"); }); }); });
client/src/utils/utils.ts +1 −0 Original line number Diff line number Diff line Loading @@ -475,4 +475,5 @@ export default { waitForElementToBePresent, wait, mergeObjectListsById, getFullAppUrl, };