mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2026-10-20 22:51:23 +08:00
correct some mistakes for global variable
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
const assert = require('assert')
|
||||
const request = require('request')
|
||||
host = global.host || 'http://localhost:3000'
|
||||
const host = global.host || 'http://localhost:3000'
|
||||
|
||||
describe('测试获取歌手专辑列表是否正常', () => {
|
||||
it('数据的 code 应该为200', done => {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
const assert = require('assert')
|
||||
const request = require('request')
|
||||
host = global.host || 'http://localhost:3000'
|
||||
const host = global.host || 'http://localhost:3000'
|
||||
|
||||
describe('测试获取评论是否正常', () => {
|
||||
it('数据的 code 应该为200', done => {
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
const assert = require('assert')
|
||||
const request = require('request')
|
||||
host = global.host || 'http://localhost:3000'
|
||||
const host = global.host || 'http://localhost:3000'
|
||||
|
||||
console.log("注意: 测试登录需在 test/login.test.js 中填写账号密码!!!");
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
const assert = require('assert')
|
||||
const request = require('request')
|
||||
host = global.host || 'http://localhost:3000'
|
||||
const host = global.host || 'http://localhost:3000'
|
||||
|
||||
describe("测试获取歌词是否正常", () => {
|
||||
it("数据应该有 lrc 字段", done => {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
const assert = require('assert')
|
||||
const request = require('request')
|
||||
host = global.host || 'http://localhost:3000'
|
||||
const host = global.host || 'http://localhost:3000'
|
||||
|
||||
describe("测试获取歌曲是否正常", () => {
|
||||
it("歌曲的 url 不应该为空", done => {
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
const assert = require('assert')
|
||||
const request = require('request')
|
||||
host = global.host || 'http://localhost:3000'
|
||||
const host = global.host || 'http://localhost:3000'
|
||||
|
||||
describe('测试搜索是否正常', () => {
|
||||
it('获取到的数据的 name 应该和搜索关键词一致', done => {
|
||||
|
||||
Reference in New Issue
Block a user