fix: miro - use the incoming domain to ensure access to logged in boards works (#1756)

This commit is contained in:
Clifton Cunningham
2020-12-30 18:35:18 +01:00
committed by GitHub
parent d4bb04e921
commit 40bd9aed0a
2 changed files with 12 additions and 4 deletions

View File

@@ -13,6 +13,12 @@ describe("Miro", () => {
expect("https://miro.com/app/board/o9J_k0fwiss=".match(match)).toBeTruthy();
});
test("to extract the domain as part of the match for later use", () => {
expect(
"https://realtimeboard.com/app/board/o9J_k0fwiss=".match(match)[1]
).toBe("realtimeboard");
});
test("to not be enabled elsewhere", () => {
expect("https://miro.com".match(match)).toBe(null);
expect("https://realtimeboard.com".match(match)).toBe(null);