1 Star 0 Fork 0

976717326/NeteaseCloudMusicApi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
album.test.js 494 Bytes
一键复制 编辑 原始数据 按行查看 历史
const assert = require('assert')
const crypto = require('crypto')
const { createRequest } = require("../util/util")
describe('测试获取歌手专辑列表是否正常', () => {
it('数据的 code 应该为200', done => {
const id = 32311
createRequest(`/api/album/${id}`, 'GET', null)
.then(result => {
const code = JSON.parse(result).code
console.log("code:" + code)
assert(code === 200)
done()
})
.catch(err => done(err))
})
})
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/rhh/NeteaseCloudMusicApi.git
git@gitee.com:rhh/NeteaseCloudMusicApi.git
rhh
NeteaseCloudMusicApi
NeteaseCloudMusicApi
master

搜索帮助