From 2ec4b589c99f2e4503896104d9acbe2d792feb84 Mon Sep 17 00:00:00 2001 From: Joon Heo Date: Tue, 2 Aug 2016 14:37:55 -0700 Subject: [PATCH] fixes #215 --- src/Job.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Job.js b/src/Job.js index 2f395ec..afc97dd 100644 --- a/src/Job.js +++ b/src/Job.js @@ -65,7 +65,7 @@ module.exports = function (grunt) { var requestParams = { method: 'POST', url: ['https://saucelabs.com/rest/v1', this.user, 'js-tests'].join('/'), - auth: { user: this.user, pass: this.key() }, + auth: { user: this.user, pass: this.key }, json: { platforms: [this.platform], url: this.url, @@ -141,7 +141,7 @@ module.exports = function (grunt) { .makeRequest({ method: 'POST', url: ['https://saucelabs.com/rest/v1', me.user, 'js-tests/status'].join('/'), - auth: { user: me.user, pass: me.key() }, + auth: { user: me.user, pass: me.key }, json: { 'js tests': [me.taskId] } }) .then(function (body) {