test(portal): cover legacy report labels without class inheritance

This commit is contained in:
AIAMarketing committed 2026-10-30 15:40:57 -07:00
1 parent 167277b037
commit 9d6e0b982e
1 file changed
+6
+6
View File
@@ -35,6 +35,12 @@ test('portal presentation translates only explicit button tokens/brand fills and
assert.equal(portalLinkPresentation(['hs-button', 'untrusted'], '', 'https:'), 'portal-resource-button');
assert.equal(portalLinkPresentation([], 'rgb(255, 189, 89)', 'https:'), 'portal-resource-button');
assert.equal(portalLinkPresentation(['arbitrary'], 'url(https://example.invalid)', 'https:'), undefined);
assert.equal(portalLinkPresentation(['unrecognized-legacy'], '', 'https:', 'Operations Monthly Lineup Report - PM'), 'portal-resource-button');
assert.equal(portalLinkPresentation([], '', 'https:', 'Human Resources Daily Lineup Report - PM'), 'portal-resource-button');
assert.equal(portalLinkPresentation([], '', 'https:', 'Billing Daily Lineup Report - PM'), 'portal-resource-button');
assert.equal(portalLinkPresentation([], '', 'https:', 'Generic reports and documents'), undefined);
assert.equal(portalLinkPresentation([], '', 'https:', 'Monthly report'), undefined);
assert.equal(portalLinkPresentation([], '', 'mailto:', 'Operations Monthly Lineup Report - PM'), 'portal-contact-link');
assert.equal(portalLinkPresentation([], '', 'mailto:'), 'portal-contact-link');
assert.equal(portalLinkPresentation([], '', 'tel:'), 'portal-contact-link');
});