mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-18 16:01:40 +03:00
f6d5480c4f
no issue - this repository has been renamed so this commit just brings all the links inline with this change
32 lines
821 B
JavaScript
32 lines
821 B
JavaScript
require('./utils');
|
|
|
|
const fs = require('fs');
|
|
const path = require('path');
|
|
const {Changelog} = require('../lib');
|
|
|
|
describe('Changelog', function () {
|
|
it('can generate changelog.md', function () {
|
|
const changelogPath = path.join(process.cwd(), 'changelog.md');
|
|
|
|
const changelog = new Changelog({
|
|
changelogPath: changelogPath,
|
|
folder: process.cwd()
|
|
});
|
|
|
|
changelog
|
|
.write({
|
|
githubRepoPath: `https://github.com/TryGhost/Utils`,
|
|
lastVersion: '@tryghost/release-utils@0.6.3'
|
|
})
|
|
.sort()
|
|
.clean();
|
|
|
|
try {
|
|
fs.unlinkSync(changelogPath);
|
|
fs.unlinkSync(changelogPath + '.bk');
|
|
} catch (err) {
|
|
should.not.exist(err);
|
|
}
|
|
});
|
|
});
|