From fe28f310b88f0189499d8a1d1afce1b1e2b00ee9 Mon Sep 17 00:00:00 2001 From: Esben Petersen Date: Mon, 13 Nov 2017 14:07:14 +0100 Subject: [PATCH] fix tests --- package.json | 2 +- test/api.test.js | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 151cb22..c09b7fc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdf-bot", - "version": "0.5.1", + "version": "0.5.2", "author": "Esben Petersen ", "homepage": "https://github.com/esbenp/pdf-bot", "license": "MIT", diff --git a/test/api.test.js b/test/api.test.js index 4b9fd22..9c96137 100644 --- a/test/api.test.js +++ b/test/api.test.js @@ -34,7 +34,8 @@ describe('api: POST /', function () { error: true }) }) - } + }, + close: function(){} } } var api = createApi(queue, { @@ -56,7 +57,8 @@ describe('api: POST /', function () { var queue = function() { return { - addToQueue: addToQueue + addToQueue: addToQueue, + close: function(){} } } var api = createApi(queue, {