Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('coreUtils.file.addFolder()', function() {
this.sinon = sinon.sandbox.create();
var stub = sinon.stub(mkdirp, 'mkdirP')
stub.returns({'test':'test'});
var result = coreUtils.file.addFolder('path/to/folder')
chai.expect(result).to.be.a('string')
chai.expect(result).to.equal('path/to/folder')
mkdirp.mkdirP.restore()
});