mirror of
https://github.com/affaan-m/ECC.git
synced 2026-09-02 05:09:01 +02:00
test: satisfy trade planner regex lint
This commit is contained in:
@@ -34,7 +34,7 @@ function main() {
|
||||
const skill = read('skills/ito-trade-planner/SKILL.md');
|
||||
const tests = [
|
||||
['has portable discovery metadata and representative triggers', () => {
|
||||
assert.match(skill, /^---\nname: ito-trade-planner\ndescription: [^\n]+\nmetadata:\n origin: ECC\n---/);
|
||||
assert.match(skill, /^---\nname: ito-trade-planner\ndescription: [^\n]+\nmetadata:\n {2}origin: ECC\n---/);
|
||||
for (const trigger of ['trade plan', 'planning worksheet', 'venue comparison', 'basket adjustment']) {
|
||||
assert.match(skill, new RegExp(trigger, 'i'), `missing trigger phrase: ${trigger}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user