test: decouple missing changelog sentinel
This commit is contained in:
parent
57fc3a3ddf
commit
e5ead6a0b3
1 changed files with 2 additions and 2 deletions
|
|
@ -35,11 +35,11 @@ test('extracts the complete real 1.4.0 changelog section', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
test('missing version fails with a reason and no stdout', () => {
|
test('missing version fails with a reason and no stdout', () => {
|
||||||
const result = extract('1.5.0');
|
const result = extract('0.0.0');
|
||||||
|
|
||||||
assert.equal(result.status, 1);
|
assert.equal(result.status, 1);
|
||||||
assert.equal(result.stdout, '');
|
assert.equal(result.stdout, '');
|
||||||
assert.match(result.stderr, /no section for '1\.5\.0'/);
|
assert.match(result.stderr, /no section for '0\.0\.0'/);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('heading without a list entry is rejected as empty', () => {
|
test('heading without a list entry is rejected as empty', () => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue