test: decouple missing changelog sentinel
All checks were successful
labels / labels (pull_request) Successful in 13s
ci / test (pull_request) Successful in 18s

This commit is contained in:
codex-bot-andresmgsl 2026-09-02 20:03:12 +00:00
parent 57fc3a3ddf
commit e5ead6a0b3

View file

@ -35,11 +35,11 @@ test('extracts the complete real 1.4.0 changelog section', () => {
});
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.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', () => {