2
0
mirror of https://github.com/yagop/node-telegram-bot-api synced 2025-08-28 12:57:38 +00:00

Can't import 'del' module. Use fs.unlinkSync instead.

This commit is contained in:
Yago 2015-09-26 20:29:24 +02:00
parent 2247d248c8
commit c8a4fc6917

View File

@ -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();
});
});