Skip to content

Commit

Permalink
Fix broken test-coverage task
Browse files Browse the repository at this point in the history
PhantomJS doesn't support promises, so proxyquire will break.

This was broken in a712acb
  • Loading branch information
mroderick authored and fatso83 committed Oct 6, 2017
1 parent 527086a commit e49fcf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/sinon-test.js
@@ -1,20 +1,20 @@
"use strict";

var proxyquire = require("proxyquire");
var assert = require("referee").assert;
var hasPromise = typeof Promise === "function";

if (!hasPromise) {
return;
}

var proxyquire = require("proxyquire");

describe("sinon module", function () {
var sinon,
fakeSandbox,
fakeNise;

beforeEach(function () {

fakeNise = {
fakeServer: {
create: function () {
Expand Down

0 comments on commit e49fcf1

Please sign in to comment.