Release Bugfixes (#2470)
This commit is contained in:
parent
d796d06fd1
commit
bdcd3965fd
14 changed files with 194 additions and 25 deletions
14
API.Tests/Services/ScrobblingServiceTests.cs
Normal file
14
API.Tests/Services/ScrobblingServiceTests.cs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
using API.Services.Plus;
|
||||
using Xunit;
|
||||
|
||||
namespace API.Tests.Services;
|
||||
|
||||
public class ScrobblingServiceTests
|
||||
{
|
||||
[Theory]
|
||||
[InlineData("https://anilist.co/manga/35851/Byeontaega-Doeja/", 35851)]
|
||||
public void CanParseWeblink(string link, long expectedId)
|
||||
{
|
||||
Assert.Equal(ScrobblingService.ExtractId<long>(link, ScrobblingService.AniListWeblinkWebsite), expectedId);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue