aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Finlay <somniac@me.com>2016-09-15 09:28:47 +0800
committerGitHub <noreply@github.com>2016-09-15 09:28:47 +0800
commit06b9adf172010600c7ac1127ff2ee76a7433e97b (patch)
tree5b26e092d590ff627a0edc2a2cf4ed12c9aa5d04
parentf7bd1bb6d86609c441efa10fa4527b49465fb156 (diff)
parentcf31e1902909f3bd1f0e26b279cda79a9879ff4e (diff)
downloadtangerine-wallet-browser-06b9adf172010600c7ac1127ff2ee76a7433e97b.tar
tangerine-wallet-browser-06b9adf172010600c7ac1127ff2ee76a7433e97b.tar.gz
tangerine-wallet-browser-06b9adf172010600c7ac1127ff2ee76a7433e97b.tar.bz2
tangerine-wallet-browser-06b9adf172010600c7ac1127ff2ee76a7433e97b.tar.lz
tangerine-wallet-browser-06b9adf172010600c7ac1127ff2ee76a7433e97b.tar.xz
tangerine-wallet-browser-06b9adf172010600c7ac1127ff2ee76a7433e97b.tar.zst
tangerine-wallet-browser-06b9adf172010600c7ac1127ff2ee76a7433e97b.zip
Merge pull request #671 from MetaMask/UpdateGlobalRefs
Update global refs
-rw-r--r--test/unit/extension-test.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/unit/extension-test.js b/test/unit/extension-test.js
index 86e1d887a..8f259f05c 100644
--- a/test/unit/extension-test.js
+++ b/test/unit/extension-test.js
@@ -1,8 +1,8 @@
var assert = require('assert')
var sinon = require('sinon')
const ethUtil = require('ethereumjs-util')
-GLOBAL.chrome = {}
-GLOBAL.browser = {}
+global.chrome = {}
+global.browser = {}
var path = require('path')
var Extension = require(path.join(__dirname, '..', '..', 'app', 'scripts', 'lib', 'extension-instance.js'))
@@ -13,7 +13,7 @@ describe('extension', function() {
const desiredResult = 'http://the-desired-result.io'
describe('in Chrome or Firefox', function() {
- GLOBAL.chrome.extension = {
+ global.chrome.extension = {
getURL: () => desiredResult
}
@@ -25,7 +25,7 @@ describe('extension', function() {
})
describe('in Microsoft Edge', function() {
- GLOBAL.browser.extension = {
+ global.browser.extension = {
getURL: () => desiredResult
}
@@ -41,7 +41,7 @@ describe('extension', function() {
let extension
beforeEach(function() {
- GLOBAL.chrome = {
+ global.chrome = {
alarms: 'foo'
}
extension = new Extension()
@@ -58,9 +58,9 @@ describe('extension', function() {
beforeEach(function() {
realWindow = window
- window = GLOBAL
- GLOBAL.chrome = undefined
- GLOBAL.alarms = 'foo'
+ window = global
+ global.chrome = undefined
+ global.alarms = 'foo'
extension = new Extension()
})