diff options
author | Ajay <[email protected]> | 2022-12-19 16:12:51 -0500 |
---|---|---|
committer | Ajay <[email protected]> | 2022-12-19 16:12:51 -0500 |
commit | 35b8a341629b46965c8019b4a9b375d8ecdd8055 (patch) | |
tree | 70c43894bd49c6a614f62a7405db6493f6d9c071 /test | |
parent | 3379189ea84c7eb3a4821b526780c54b4023af8d (diff) | |
download | SponsorBlock-35b8a341629b46965c8019b4a9b375d8ecdd8055.tar.gz SponsorBlock-35b8a341629b46965c8019b4a9b375d8ecdd8055.zip |
Don't remove trailing end bracket when not starting with bracket
Diffstat (limited to 'test')
-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 a3af0c04..bf948df0 100644 --- a/test/exporter.test.ts +++ b/test/exporter.test.ts @@ -275,4 +275,20 @@ describe("Import segments", () => { category: "chapter" as Category }]); }); + + it ("0:00 G¹ (Tangent Continuity)", () => { + const input = ` 0:00 G¹ (Tangent Continuity) + 0:01 G² (Tangent Continuity)`; + + const result = importTimes(input, 8000); + expect(result).toMatchObject([{ + segment: [0, 1], + description: "G¹ (Tangent Continuity)", + category: "chapter" as Category + }, { + segment: [1, 8000], + description: "G² (Tangent Continuity)", + category: "chapter" as Category + }]); + }); });
\ No newline at end of file |