mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2026-10-20 22:51:23 +08:00
chore: 删除过时的issue模板和更新bug报告及功能请求模板
This commit is contained in:
@@ -4,13 +4,14 @@ const host = global.host || 'http://localhost:3000'
|
||||
describe('测试获取歌曲是否正常', () => {
|
||||
it('歌曲的 url 不应该为空', (done) => {
|
||||
const qs = {
|
||||
id: 2756058128,
|
||||
br: 999000,
|
||||
realIP: global.cnIp,
|
||||
id: 2709812973,
|
||||
level: 'exhigh',
|
||||
realip: '125.88.253.199',
|
||||
// realIP: global.cnIp,
|
||||
}
|
||||
|
||||
axios
|
||||
.get(`${host}/song/url`, {
|
||||
.get(`${host}/song/url/v1`, {
|
||||
params: qs,
|
||||
})
|
||||
.then(({ status, data }) => {
|
||||
|
||||
+3
-3
@@ -4,17 +4,17 @@ const host = global.host || 'http://localhost:3000'
|
||||
describe('测试搜索是否正常', () => {
|
||||
it('获取到的数据的 name 应该和搜索关键词一致', (done) => {
|
||||
const qs = {
|
||||
keywords: '海阔天空',
|
||||
keywords: '拂晓 Proi Proi',
|
||||
type: 1,
|
||||
realIP: global.cnIp,
|
||||
}
|
||||
axios
|
||||
.get(`${host}/search`, {
|
||||
.get(`${host}/cloudsearch`, {
|
||||
params: qs,
|
||||
})
|
||||
.then(({ status, data }) => {
|
||||
if (status == 200) {
|
||||
assert(data.result.songs[0].name === '海阔天空')
|
||||
assert(data.result.songs[0].name === '拂晓 Proi Proi')
|
||||
}
|
||||
done()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user