Skip to content
This repository was archived by the owner on Dec 5, 2018. It is now read-only.

Commit f7fdd5b

Browse files
use karma-host-environment for host checks
1 parent 957e0ad commit f7fdd5b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/fixtures/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
(function () {
22
'use strict';
33

4-
if (typeof (mocha) === 'object') {
4+
if (host.browser) {
55
// Configure Mocha
66
mocha.setup('bdd');
77
mocha.fullTrace();

test/fixtures/globals.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
(function () {
1111
'use strict';
1212

13-
if (typeof (window) === 'object') {
13+
if (host.browser) {
1414
// Expose Browser globals
1515
host.global.expect = chai.expect;
1616
}

0 commit comments

Comments
 (0)