From b2310cfa75e9fec5e1fd1d0ddcb317b4c690d20a Mon Sep 17 00:00:00 2001 From: coderaiser Date: Thu, 27 Oct 2016 20:29:12 +0300 Subject: [PATCH] chore(cloudcmd) rm unused --- test/cloudcmd.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/test/cloudcmd.js b/test/cloudcmd.js index a4415441..45f9cfd8 100644 --- a/test/cloudcmd.js +++ b/test/cloudcmd.js @@ -1,6 +1,5 @@ const http = require('http'); const fs = require('fs'); -const path = require('path'); const test = require('tape'); const express = require('express'); @@ -10,7 +9,6 @@ const request = require('request'); const wrap = (fn, ...a) => (...b) => fn(...a, ...b); const warp = (fn, ...a) => (...b) => fn(...b, ...a); -const success = (fn) => (...args) => fn(null, ...args); const freeport = promisify(require('freeport')); const _pullout = promisify(pullout); @@ -88,7 +86,7 @@ test('cloudcmd: rest: pack: put: file', (t) => { put(options) .then(warp(_pullout, 'string')) - .then((pack) => { + .then(() => { const file = fs.readFileSync(__dirname + '/' + name); const fixture = fs.readFileSync(__dirname + '/fixture/pack.tar.gz'); @@ -127,7 +125,6 @@ test('cloudcmd: rest: pack: put: response', (t) => { test('cloudcmd: rest: pack: put: error', (t) => { before((port, after) => { - const name = String(Math.random()) + '.tar.gz'; const options = getPackOptions(host, port, 'name', [ 'not found' ]);