mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-11 09:53:32 +03:00
7f8ded6057
- `shellSync` was removed in execa v2 - this commit switches the usage to the recommended replacement; `sync` - also adds a test for changelog, the part of code which uses execa
22 lines
579 B
JavaScript
22 lines
579 B
JavaScript
require('./utils');
|
|
|
|
const path = require('path');
|
|
const {Changelog} = require('../lib');
|
|
|
|
describe('Changelog', function () {
|
|
it('can generate changelog.md', function () {
|
|
const changelog = new Changelog({
|
|
changelogPath: path.join(process.cwd(), 'changelog.md'),
|
|
folder: process.cwd()
|
|
});
|
|
|
|
changelog
|
|
.write({
|
|
githubRepoPath: `https://github.com/TryGhost/Ghost-Utils`,
|
|
lastVersion: '@tryghost/release-utils@0.6.3'
|
|
})
|
|
.sort()
|
|
.clean();
|
|
});
|
|
});
|