fix: standardize tag naming and fix unknown keyword display #184 #185

This commit is contained in:
Linus Rath
2026-04-12 15:37:57 +02:00
parent 24949e183f
commit 1b816d3185
19 changed files with 193 additions and 186 deletions
+2 -2
View File
@@ -194,9 +194,9 @@ describe('generateScript', () => {
expect(script).toContain('addflag "\\\\Flagged";');
});
it('generates add_label as addflag $Label', () => {
it('generates add_label as addflag $label:Label', () => {
const script = generateScript([makeRule({ actions: [{ type: 'add_label', value: 'Important' }] })]);
expect(script).toContain('addflag "$Important";');
expect(script).toContain('addflag "$label:Important";');
});
it('generates discard', () => {