From 8abfa419e8decf2bebd97d62738eb4db995cacb1 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Mon, 24 Nov 2014 01:56:16 -0800 Subject: [PATCH] Use `_.includes` instead of `_.contains` in saucelabs.js. --- test/saucelabs.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/saucelabs.js b/test/saucelabs.js index ef774dd0e..a39624c2b 100644 --- a/test/saucelabs.js +++ b/test/saucelabs.js @@ -140,7 +140,7 @@ if (compatMode) { ]; } // The platforms for AMD tests. -if (_.contains(tags, 'amd')) { +if (_.includes(tags, 'amd')) { platforms = _.filter(platforms, function(platform) { var browser = browserName(platform[1]), version = +platform[2]; @@ -433,7 +433,7 @@ function onJobStatus(error, res, body) { jobResult = _.result(data, 'result', null), jobStatus = _.result(data, 'status', ''), jobUrl = _.result(data, 'url', null), - expired = (elapsed >= queueTimeout && !_.contains(jobStatus, 'in progress')), + expired = (elapsed >= queueTimeout && !_.includes(jobStatus, 'in progress')), options = this.options, platform = options.platforms[0]; @@ -739,7 +739,7 @@ function Tunnel(properties) { }); _.invoke(all, 'on', 'restart', function() { - if (!_.contains(restarted, this)) { + if (!_.includes(restarted, this)) { restarted.push(this); } // Restart tunnel if all active jobs have restarted.