mirror of
https://github.com/garrytan/gstack.git
synced 2026-10-03 01:46:55 +02:00
feat(eval-pass-rates): attribute legacy records by the exact slug of their display name
This commit is contained in:
1 parent
d6b3559b78
commit
8ee9f887ed
2 files changed
+7
-2
No files matched your search
@@ -281,6 +281,8 @@ describe('pass-rates inputs', () => {
|
||||
test('legacy records attribute by shard suffix, id, label or single-owner file, else stay unattributed', () => {
|
||||
expect(attributeLegacyRecord('/anything', 'skill-e2e-b--beh-b', registry)).toBe('beh-b');
|
||||
expect(attributeLegacyRecord('rule-a', 'skill-e2e-zzz', registry)).toBe('rule-a');
|
||||
expect(attributeLegacyRecord('/Rule a', 'skill-e2e-zzz', registry)).toBe('rule-a');
|
||||
expect(attributeLegacyRecord('/rule a extra', 'skill-e2e-zzz', registry)).toBeNull();
|
||||
expect(attributeLegacyRecord('/gate c labeled', undefined, registry)).toBe('gate-c');
|
||||
expect(attributeLegacyRecord('/a display name', 'skill-e2e-a', registry)).toBe('rule-a');
|
||||
expect(attributeLegacyRecord('/shared display', 'skill-e2e-shared', registry)).toBeNull();
|
||||
|
||||
Reference in new issue
Block a user