mirror of
https://github.com/outline/outline.git
synced 2026-06-24 00:34:22 +03:00
835fd26a95
commit ebe2fe07d1a9110a99a21772b79f189dd13b4ca8 Author: Tom Moor <tom.moor@gmail.com> Date: Thu Aug 26 20:18:52 2021 -0700 fix: regex, formatting commit1fd17b6f8aAuthor: Matheus Breguêz <matbrgz@gmail.com> Date: Thu Aug 26 09:37:12 2021 -0300 fix: change image size commit30e9bad0f5Merge:ef99201ccc9468e2Author: Matheus Breguêz <matbrgz@mail.com> Date: Thu Aug 26 09:28:34 2021 -0300 Merge branch 'main' into feat/google-calendar-embed commitef99201c9dAuthor: Matheus Breguêz <matbrgz@mail.com> Date: Fri Jul 9 11:53:56 2021 -0300 Update GoogleCalendar.js commit0e91084756Merge:e98f94c0ec5c47e0Author: Matheus Breguêz <matbrgz@gmail.com> Date: Wed Jul 7 14:49:06 2021 -0300 Merge remote-tracking branch 'origin/feat/google-calendar-embed' into feat/google-calendar-embed commite98f94c02dAuthor: Matheus Breguêz <matbrgz@gmail.com> Date: Wed Jul 7 14:29:49 2021 -0300 feat: Add Google Calendar Embed commitec5c47e0c8Author: Matheus Breguêz <matbrgz@gmail.com> Date: Wed Jul 7 14:29:49 2021 -0300 feat: Add Google Calendar Embed
20 lines
658 B
JavaScript
20 lines
658 B
JavaScript
/* eslint-disable flowtype/require-valid-file-annotation */
|
|
import GoogleCalendar from "./GoogleCalendar";
|
|
|
|
describe("GoogleCalendar", () => {
|
|
const match = GoogleCalendar.ENABLED[0];
|
|
test("to be enabled on share link", () => {
|
|
expect(
|
|
"https://calendar.google.com/calendar/embed?src=tom%40outline.com&ctz=America%2FSao_Paulo".match(
|
|
match
|
|
)
|
|
).toBeTruthy();
|
|
});
|
|
|
|
test("to not be enabled elsewhere", () => {
|
|
expect("https://calendar.google.com/calendar".match(match)).toBe(null);
|
|
expect("https://calendar.google.com".match(match)).toBe(null);
|
|
expect("https://www.google.com".match(match)).toBe(null);
|
|
});
|
|
});
|