Unverified Commit b1614ba8 authored by Alireza Heidari's avatar Alireza Heidari
Browse files

🚨: add unit test for `getFullAppUrl` utility function

parent a363a243
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -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");
        });
    });
});
+1 −0
Original line number Diff line number Diff line
@@ -475,4 +475,5 @@ export default {
    waitForElementToBePresent,
    wait,
    mergeObjectListsById,
    getFullAppUrl,
};