Skip to content

Commit

Permalink
remove unused.
Browse files Browse the repository at this point in the history
  • Loading branch information
keelii committed Apr 10, 2016
1 parent 7e18b04 commit aad35ee
Showing 1 changed file with 29 additions and 20 deletions.
49 changes: 29 additions & 20 deletions test/cli.release.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
// );
// })
//});

0 comments on commit aad35ee

Please sign in to comment.