aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorAjay Ramachandran <[email protected]>2021-10-05 20:51:20 -0400
committerAjay Ramachandran <[email protected]>2021-10-05 20:51:20 -0400
commit4045978b5492b9cdbb87f688e234430fd03131c1 (patch)
tree37ce4c76ee606a048037ad1ac338df73e5573e6c /test
parent56bc3fca044526607b721c730b68d0dde43a59fc (diff)
downloadSponsorBlock-4045978b5492b9cdbb87f688e234430fd03131c1.tar.gz
SponsorBlock-4045978b5492b9cdbb87f688e234430fd03131c1.zip
Support older browsers
Diffstat (limited to 'test')
-rw-r--r--test/urlParser.test.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/urlParser.test.ts b/test/urlParser.test.ts
index 32cf1568..888227dc 100644
--- a/test/urlParser.test.ts
+++ b/test/urlParser.test.ts
@@ -5,15 +5,15 @@ describe("getStartTimeFromUrl", () => {
expect(getStartTimeFromUrl("https://www.youtube.com/watch?v=dQw4w9WgXcQ&t=123")).toBe(123);
});
- it("parses with a seconds", () => {
+ it("parses with seconds", () => {
expect(getStartTimeFromUrl("https://www.youtube.com/watch?v=dQw4w9WgXcQ&t=123s")).toBe(123);
});
- it("parses with a minutes", () => {
+ it("parses with minutes", () => {
expect(getStartTimeFromUrl("https://www.youtube.com/watch?v=dQw4w9WgXcQ&t=23m3s")).toBe(23 * 60 + 3);
});
- it("parses with a hours", () => {
+ it("parses with hours", () => {
expect(getStartTimeFromUrl("https://www.youtube.com/watch?v=dQw4w9WgXcQ&t=1h2m3s")).toBe(1 * 60 * 60 + 2 * 60 + 3);
});