fix: Passing of start parameter to YouTube embed

This commit is contained in:
Tom Moor
2023-04-05 12:48:48 -04:00
parent 9573026fdd
commit 9a7ecd7403
2 changed files with 17 additions and 3 deletions

View File

@@ -9,6 +9,12 @@ describe("YouTube", () => {
).toBeTruthy();
});
test("to be enabled on video link with timestamp", () => {
expect(
"https://www.youtube.com/watch?v=dQw4w9WgXcQ&t=123s".match(match)
).toBeTruthy();
});
test("to be enabled on embed link", () => {
expect(
"https://www.youtube.com/embed?v=dQw4w9WgXcQ".match(match)