From aad35ee3d555f3326b30b0367e73b445bddb90e0 Mon Sep 17 00:00:00 2001 From: keelii Date: Sun, 10 Apr 2016 18:10:30 +0800 Subject: [PATCH] remove unused. --- test/cli.release.js | 49 +++++++++++++++++++++++++++------------------ 1 file changed, 29 insertions(+), 20 deletions(-) diff --git a/test/cli.release.js b/test/cli.release.js index ed6b359..faa21d4 100644 --- a/test/cli.release.js +++ b/test/cli.release.js @@ -10,26 +10,35 @@ const release = require('../cli/release'); const utils = require('../lib/utils'); describe('cli/release', function () { - let tag = null; - before(function (done) { - release(settings, function (err, res) { - if (err) { - return release.execute(`git tag -d ${tag}`); - } - tag = res; - done(err); + it('should get tag list', function (done) { + release.getTag('git tag', function (err, tagname) { + assert.equal(utils.getTagName(), tagname); + done(); }); }); - after(function (done) { - release.execute(`git tag -d ${tag}`, function (err) { - done(err); - }); - }); - - it('should release a tag', function () { - assert.equal( - tag, - utils.getTagName() - ); - }) }); +// +//describe('cli/release', function () { +// let tag = null; +// before(function (done) { +// release(settings, function (err, res) { +// if (err) { +// return release.execute(`git tag -d ${tag}`, () => {}); +// } +// tag = res; +// done(err); +// }); +// }); +// after(function (done) { +// release.execute(`git tag -d ${tag}`, function (err) { +// done(err); +// });e +// }); +// +// it('should release a tag', function () { +// assert.equal( +// tag, +// utils.getTagName() +// ); +// }) +//});