test(config-audit): extend grade-stability test to assert Token Efficiency A/B on baseline
This commit is contained in:
parent
4b385bf456
commit
295a6289b4
1 changed files with 7 additions and 0 deletions
|
|
@ -42,4 +42,11 @@ describe('posture grade stability — baseline-all-a', () => {
|
||||||
assert.equal(s.counts.high, 0, `${s.scanner} has ${s.counts.high} high findings`);
|
assert.equal(s.counts.high, 0, `${s.scanner} has ${s.counts.high} high findings`);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('Token Efficiency area scores grade A or B on baseline', () => {
|
||||||
|
const te = result.areas.find(a => a.id === 'token_efficiency');
|
||||||
|
assert.ok(te, 'expected token_efficiency area to be present');
|
||||||
|
assert.ok(['A', 'B'].includes(te.grade),
|
||||||
|
`Token Efficiency grade is ${te.grade}, expected A or B (score=${te.score})`);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue