diff --git a/plugins/config-audit/tests/scanners/posture-grade-stability.test.mjs b/plugins/config-audit/tests/scanners/posture-grade-stability.test.mjs index cbe66d6..be75ff5 100644 --- a/plugins/config-audit/tests/scanners/posture-grade-stability.test.mjs +++ b/plugins/config-audit/tests/scanners/posture-grade-stability.test.mjs @@ -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`); } }); + + 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})`); + }); });