From c8a4fc691765d7054ce4540bd83f59e072641179 Mon Sep 17 00:00:00 2001 From: Yago Date: Sat, 26 Sep 2015 20:29:24 +0200 Subject: [PATCH] Can't import 'del' module. Use fs.unlinkSync instead. --- test/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/index.js b/test/index.js index 8e9bb42..fa92cef 100644 --- a/test/index.js +++ b/test/index.js @@ -2,7 +2,6 @@ var TelegramPolling = require('../src/telegramPolling'); var Telegram = require('../index'); var request = require('request'); var should = require('should'); -var del = require('del'); var fs = require('fs'); process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0"; @@ -446,7 +445,7 @@ describe('Telegram', function () { bot.downloadFile(fileId, downloadPath).then(function (filePath) { filePath.should.be.an.instanceOf(String); fs.existsSync(filePath).should.be.true(); - del(filePath); // Clean folder after test + fs.unlinkSync(filePath); // Delete file after test done(); }); });