diff options
author | Ajay <[email protected]> | 2022-12-19 16:19:01 -0500 |
---|---|---|
committer | Ajay <[email protected]> | 2022-12-19 16:19:01 -0500 |
commit | f764869cc89db39c1240ba1f7b9710a7d74ee83d (patch) | |
tree | 67b41902e1dd73dedfc3c1b777689f1f86650a7e | |
parent | 2ba5fa695455607d5c89ecb1f9c698a324f14f8b (diff) | |
download | SponsorBlock-5.1.10.tar.gz SponsorBlock-5.1.10.zip |
Add another test case5.1.10
-rw-r--r-- | test/exporter.test.ts | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/exporter.test.ts b/test/exporter.test.ts index bf948df0..596af640 100644 --- a/test/exporter.test.ts +++ b/test/exporter.test.ts @@ -291,4 +291,20 @@ describe("Import segments", () => { category: "chapter" as Category }]); }); + + it ("((Some name) 1:20)", () => { + const input = ` ((Some name) 1:20) + ((Some other name) 1:25)`; + + const result = importTimes(input, 8000); + expect(result).toMatchObject([{ + segment: [80, 85], + description: "Some name", + category: "chapter" as Category + }, { + segment: [85, 8000], + description: "Some other name", + category: "chapter" as Category + }]); + }); });
\ No newline at end of file |