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('获取到的数据的 name 应该和搜索关键词一致', done => {