From 444bbf4cbc503148ebc4a80152093adb3c55c7a8 Mon Sep 17 00:00:00 2001 From: John McLear Date: Sat, 27 Dec 2014 14:19:31 +0100 Subject: [PATCH] remove trailing enter from apikey --- tests/backend/specs/api/pad.js | 1 + tests/backend/specs/api/sessionsAndGroups.js | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/backend/specs/api/pad.js b/tests/backend/specs/api/pad.js index e6b6de81c..700c498f6 100644 --- a/tests/backend/specs/api/pad.js +++ b/tests/backend/specs/api/pad.js @@ -7,6 +7,7 @@ var assert = require('assert') var filePath = path.join(__dirname, '../../../../APIKEY.txt'); var apiKey = fs.readFileSync(filePath, {encoding: 'utf-8'}); +apiKey = apiKey.replace(/\n$/, ""); var apiVersion = 1; var testPadId = makeid(); var lastEdited = ""; diff --git a/tests/backend/specs/api/sessionsAndGroups.js b/tests/backend/specs/api/sessionsAndGroups.js index 86ba454a2..4742852ff 100644 --- a/tests/backend/specs/api/sessionsAndGroups.js +++ b/tests/backend/specs/api/sessionsAndGroups.js @@ -7,6 +7,7 @@ var assert = require('assert') var filePath = path.join(__dirname, '../../../../APIKEY.txt'); var apiKey = fs.readFileSync(filePath, {encoding: 'utf-8'}); +apiKey = apiKey.replace(/\n$/, ""); var apiVersion = 1; var testPadId = makeid(); var groupID = "";