Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
m0_66418769
NeteaseCloudMusicApi
提交
9924f233
N
NeteaseCloudMusicApi
项目概览
m0_66418769
/
NeteaseCloudMusicApi
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
N
NeteaseCloudMusicApi
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
9924f233
编写于
9月 26, 2018
作者:
B
binaryify
提交者:
GitHub
9月 26, 2018
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #331 from nondanee/bandage
修复单测里的小问题
上级
5826b245
1bef762d
变更
7
显示空白变更内容
内联
并排
Showing
7 changed file
with
10 addition
and
8 deletion
+10
-8
app.test.js
app.test.js
+4
-2
test/album.test.js
test/album.test.js
+1
-1
test/comment.test.js
test/comment.test.js
+1
-1
test/login.test.js
test/login.test.js
+1
-1
test/lyric.test.js
test/lyric.test.js
+1
-1
test/music_url.test.js
test/music_url.test.js
+1
-1
test/search.test.js
test/search.test.js
+1
-1
未找到文件。
app.test.js
浏览文件 @
9924f233
const
fs
=
require
(
'
fs
'
)
const
fs
=
require
(
'
fs
'
)
const
path
=
require
(
'
path
'
)
const
path
=
require
(
'
path
'
)
const
request
=
require
(
'
request
'
)
let
app
let
app
before
(()
=>
{
before
(()
=>
{
app
=
require
(
'
./app.js
'
)
app
=
require
(
'
./app.js
'
)
global
.
host
=
'
http://localhost:
'
+
app
.
server
.
address
().
port
global
.
host
=
'
http://localhost:
'
+
app
.
server
.
address
().
port
request
.
debug
=
false
})
})
after
((
done
)
=>
{
after
((
done
)
=>
{
app
.
server
.
close
(
done
)
app
.
server
.
close
(
done
)
})
})
fs
.
readdirSync
(
path
.
resolve
(
__dirname
,
'
test
'
))
fs
.
readdirSync
(
path
.
join
(
__dirname
,
'
test
'
))
.
forEach
(
file
=>
{
.
forEach
(
file
=>
{
require
(
'
./test/
'
+
file
)
require
(
path
.
join
(
__dirname
,
'
test
'
,
file
)
)
})
})
\ No newline at end of file
test/album.test.js
浏览文件 @
9924f233
const
assert
=
require
(
'
assert
'
)
const
assert
=
require
(
'
assert
'
)
const
request
=
require
(
'
request
'
)
const
request
=
require
(
'
request
'
)
host
=
global
.
host
||
'
http://localhost:3000
'
const
host
=
global
.
host
||
'
http://localhost:3000
'
describe
(
'
测试获取歌手专辑列表是否正常
'
,
()
=>
{
describe
(
'
测试获取歌手专辑列表是否正常
'
,
()
=>
{
it
(
'
数据的 code 应该为200
'
,
done
=>
{
it
(
'
数据的 code 应该为200
'
,
done
=>
{
...
...
test/comment.test.js
浏览文件 @
9924f233
const
assert
=
require
(
'
assert
'
)
const
assert
=
require
(
'
assert
'
)
const
request
=
require
(
'
request
'
)
const
request
=
require
(
'
request
'
)
host
=
global
.
host
||
'
http://localhost:3000
'
const
host
=
global
.
host
||
'
http://localhost:3000
'
describe
(
'
测试获取评论是否正常
'
,
()
=>
{
describe
(
'
测试获取评论是否正常
'
,
()
=>
{
it
(
'
数据的 code 应该为200
'
,
done
=>
{
it
(
'
数据的 code 应该为200
'
,
done
=>
{
...
...
test/login.test.js
浏览文件 @
9924f233
const
assert
=
require
(
'
assert
'
)
const
assert
=
require
(
'
assert
'
)
const
request
=
require
(
'
request
'
)
const
request
=
require
(
'
request
'
)
host
=
global
.
host
||
'
http://localhost:3000
'
const
host
=
global
.
host
||
'
http://localhost:3000
'
console
.
log
(
"
注意: 测试登录需在 test/login.test.js 中填写账号密码!!!
"
);
console
.
log
(
"
注意: 测试登录需在 test/login.test.js 中填写账号密码!!!
"
);
...
...
test/lyric.test.js
浏览文件 @
9924f233
const
assert
=
require
(
'
assert
'
)
const
assert
=
require
(
'
assert
'
)
const
request
=
require
(
'
request
'
)
const
request
=
require
(
'
request
'
)
host
=
global
.
host
||
'
http://localhost:3000
'
const
host
=
global
.
host
||
'
http://localhost:3000
'
describe
(
"
测试获取歌词是否正常
"
,
()
=>
{
describe
(
"
测试获取歌词是否正常
"
,
()
=>
{
it
(
"
数据应该有 lrc 字段
"
,
done
=>
{
it
(
"
数据应该有 lrc 字段
"
,
done
=>
{
...
...
test/music_url.test.js
浏览文件 @
9924f233
const
assert
=
require
(
'
assert
'
)
const
assert
=
require
(
'
assert
'
)
const
request
=
require
(
'
request
'
)
const
request
=
require
(
'
request
'
)
host
=
global
.
host
||
'
http://localhost:3000
'
const
host
=
global
.
host
||
'
http://localhost:3000
'
describe
(
"
测试获取歌曲是否正常
"
,
()
=>
{
describe
(
"
测试获取歌曲是否正常
"
,
()
=>
{
it
(
"
歌曲的 url 不应该为空
"
,
done
=>
{
it
(
"
歌曲的 url 不应该为空
"
,
done
=>
{
...
...
test/search.test.js
浏览文件 @
9924f233
const
assert
=
require
(
'
assert
'
)
const
assert
=
require
(
'
assert
'
)
const
request
=
require
(
'
request
'
)
const
request
=
require
(
'
request
'
)
host
=
global
.
host
||
'
http://localhost:3000
'
const
host
=
global
.
host
||
'
http://localhost:3000
'
describe
(
'
测试搜索是否正常
'
,
()
=>
{
describe
(
'
测试搜索是否正常
'
,
()
=>
{
it
(
'
获取到的数据的 name 应该和搜索关键词一致
'
,
done
=>
{
it
(
'
获取到的数据的 name 应该和搜索关键词一致
'
,
done
=>
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录