correct some mistakes for global variable

This commit is contained in:
Nzix
2018-09-26 14:19:52 +08:00
parent 981c0f7d39
commit 1bef762d74
7 changed files with 10 additions and 8 deletions

View File

@ -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 => {