From 7e46cd22cad92dbac0cfec7a6777d64d2665c787 Mon Sep 17 00:00:00 2001 From: luin Date: Mon, 8 Feb 2016 22:17:46 +0800 Subject: [PATCH] refactor(test): use global instead of GLOBAL Closes #249 --- test/helpers/global.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/helpers/global.js b/test/helpers/global.js index acb5b1fe..f9bd103d 100644 --- a/test/helpers/global.js +++ b/test/helpers/global.js @@ -1,12 +1,12 @@ 'use strict'; -GLOBAL.expect = require('chai').expect; +global.expect = require('chai').expect; var sinon = require('sinon'); -GLOBAL.stub = sinon.stub.bind(sinon); +global.stub = sinon.stub.bind(sinon); -GLOBAL.Redis = require('../..'); -GLOBAL.MockServer = require('./mock_server'); +global.Redis = require('../..'); +global.MockServer = require('./mock_server'); afterEach(function (done) { var redis = new Redis();