mirror of
https://github.com/AynaLivePlayer/miaosic.git
synced 2026-04-27 19:09:36 +08:00
update test
This commit is contained in:
1
providers/netease/login_test.go
Normal file
1
providers/netease/login_test.go
Normal file
@@ -0,0 +1 @@
|
||||
package netease
|
||||
@@ -3,6 +3,7 @@ package netease
|
||||
import (
|
||||
"github.com/AynaLivePlayer/miaosic"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
)
|
||||
|
||||
@@ -18,3 +19,10 @@ func TestGetPlaylist(t *testing.T) {
|
||||
t.Log(media.Title, media.Artist, media.Album)
|
||||
}
|
||||
}
|
||||
|
||||
func TestNetease_MatchPlaylist(t *testing.T) {
|
||||
meta, ok := api.MatchPlaylist("https://music.163.com/#/playlist?id=3204776824")
|
||||
assert.True(t, ok)
|
||||
require.Equal(t, api.GetName(), meta.Provider)
|
||||
require.Equal(t, "3204776824", meta.Identifier)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user