From 2091286953813b6c1d5884d81caa9e181fe10277 Mon Sep 17 00:00:00 2001 From: Antoine Gersant Date: Tue, 4 Jul 2017 02:50:06 -0700 Subject: [PATCH] Better output about why polyfill is missing --- test/nightwatch/environment.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/nightwatch/environment.js b/test/nightwatch/environment.js index 4503a3f..1ea4c52 100644 --- a/test/nightwatch/environment.js +++ b/test/nightwatch/environment.js @@ -1,7 +1,7 @@ -var assert = require('assert'); +var assert = require("assert"); module.exports = { - 'Fetch Web API' : function(browser) { - assert(typeof fetch == "function", "fetch function is not available"); - } + 'Fetch Web API' : function(browser) { + assert.equal(typeof fetch, "function", "fetch function is not available"); + } };