antfarm
Version:
File automation framework for ants.
33 lines (23 loc) • 754 B
JavaScript
var should = require('chai').should();
var Antfarm = require('./../../lib/antfarm');
var tmp = require('tmp');
describe('Nest Folder', function() {
var options = {log_out_level: "error"};
var af, tunnel, tmpobj;
beforeEach(function() {
af = new Antfarm(options);
tunnel = af.createTunnel("Nest testing");
tmpobj = tmp.dirSync();
});
afterEach(function() {
tmpobj.removeCallback();
});
describe('Loading', function() {
it('should create a folder', function() {
var folder = af.createFolderNest(tmpobj.name);
folder.name.should.not.be.empty;
folder.name.should.be.a('string');
folder.should.be.a('object');
});
});
});