From e2d2291d8d3ac7c093ae110b270ee8217463d417 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Fri, 30 Jul 2021 23:01:44 +0530 Subject: [PATCH] Add test Signed-off-by: RMidhunSuresh --- src/domain/navigation/index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/domain/navigation/index.js b/src/domain/navigation/index.js index a3b587df..868eec0e 100644 --- a/src/domain/navigation/index.js +++ b/src/domain/navigation/index.js @@ -232,6 +232,12 @@ export function tests() { const urlPath = stringifyPath(path); assert.equal(urlPath, "/session/1/rooms/a,b,c/1/details"); }, + "Parse loginToken query parameter into SSO segment": assert => { + const segments = parseUrlPath("/?loginToken=a1232aSD123"); + assert.equal(segments.length, 1); + assert.equal(segments[0].type, "sso"); + assert.equal(segments[0].value, "a1232aSD123"); + }, "parse grid url path with focused empty tile": assert => { const segments = parseUrlPath("/session/1/rooms/a,b,c/3"); assert.equal(segments.length, 3);