nuke-debug-util
Version:
qap调试库函数
34 lines (30 loc) • 1.19 kB
JavaScript
var command = require('../lib/qap-command.js');
var chaiAsPromised = require("chai-as-promised");
var chai = require('chai');
var path = require('path');
chai.use(chaiAsPromised);
var expect = chai.expect;
var path = require('path');
var util = require('../lib/util');
describe('qrzip功能测试', function () {
it('检测失败返回', function () {
return expect(command.qrzip(process.cwd(),'test').status).to.equal(false);
});
var absolutePath = path.resolve(process.cwd(),'_test/demo');
it('检测成功返回',function(){
return expect(command.qrzip(absolutePath,'','output').status).to.equal(true);
})
});
describe('qianniu下载链接测试', function () {
it('整体返回', function () {
return expect(command.qianniu()).to.eventually.be.an('object');
});
});
// describe('zip空文件夹输出功能测试',function(){
// var absolutePath = process.cwd();
// var dest = path.resolve(process.cwd(),'_test/demo/output/dest.zip');
// console.log(util.getEmptyFolder(absolutePath));
// it('空文件夹',function(){
// return expect(util.getEmptyFolder(absolutePath)).to.equal(false);
// })
// })