From e59fa416003f38291e6b6f8ee7adbc62d5028e7f Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 16 Nov 2021 22:41:40 +0100 Subject: [PATCH] feat: add tests for finding the api url --- src/helpers/checkAndSetApiUrl.test.ts | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/helpers/checkAndSetApiUrl.test.ts diff --git a/src/helpers/checkAndSetApiUrl.test.ts b/src/helpers/checkAndSetApiUrl.test.ts new file mode 100644 index 000000000..46d6a3255 --- /dev/null +++ b/src/helpers/checkAndSetApiUrl.test.ts @@ -0,0 +1,8 @@ +describe('Find the correct api url', () => { + // TODO: To check: + // /api/v1 + // / (should append api suffix) + // :3456/api/v1 + // :3456/ (should append api suffix) + // + Everything with http and https -> start with the current protocol, then try the other one +})