style(test): format validate-skills regression test
This commit is contained in:
parent
c9813c6862
commit
c24ae4242b
|
|
@ -66,10 +66,7 @@ function hasTriggerFinding(skillName) {
|
||||||
console.log(`\n${colors.cyan}Skill Validation — SKILL-06 trigger phrase${colors.reset}\n`);
|
console.log(`\n${colors.cyan}Skill Validation — SKILL-06 trigger phrase${colors.reset}\n`);
|
||||||
|
|
||||||
test('deprecated skill is exempt from the trigger-phrase requirement', () => {
|
test('deprecated skill is exempt from the trigger-phrase requirement', () => {
|
||||||
assert(
|
assert(hasTriggerFinding('deprecated-shim') === false, 'Expected no SKILL-06 trigger finding for a DEPRECATED skill');
|
||||||
hasTriggerFinding('deprecated-shim') === false,
|
|
||||||
'Expected no SKILL-06 trigger finding for a DEPRECATED skill',
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
test('active skill missing a trigger phrase is still flagged', () => {
|
test('active skill missing a trigger phrase is still flagged', () => {
|
||||||
|
|
@ -80,10 +77,7 @@ test('active skill missing a trigger phrase is still flagged', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
test('active skill with a "Use when" trigger is not flagged', () => {
|
test('active skill with a "Use when" trigger is not flagged', () => {
|
||||||
assert(
|
assert(hasTriggerFinding('with-trigger') === false, 'Expected no SKILL-06 trigger finding when description contains "Use when"');
|
||||||
hasTriggerFinding('with-trigger') === false,
|
|
||||||
'Expected no SKILL-06 trigger finding when description contains "Use when"',
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// --- Summary ---
|
// --- Summary ---
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue