mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-05-10 18:06:05 +02:00
Add another test case
This commit is contained in:
parent
2ba5fa6954
commit
f764869cc8
1 changed files with 16 additions and 0 deletions
|
@ -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
|
||||
}]);
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue