trackers: lock icon after owner-only tracker names (header dropdown, mobile menu, home, /trackers, /start, error suggestions) from one locked flag in #lib/projects; drop the private: subtitle prefix
All checks were successful
Deploy production / deploy (push) Successful in 1m7s
All checks were successful
Deploy production / deploy (push) Successful in 1m7s
This commit is contained in:
@@ -18,4 +18,14 @@ describe('trackers', () => {
|
||||
it('uses short single-word names', () => {
|
||||
for (const t of visibleTrackers(true)) expect(t.name).toMatch(/^[a-z]+$/);
|
||||
});
|
||||
it('locks every owner-only tracker, drops the private: prefix', () => {
|
||||
const owner = visibleTrackers(true);
|
||||
const pub = new Set(visibleTrackers(false).map((t) => t.name));
|
||||
for (const t of owner) {
|
||||
if (!pub.has(t.name)) expect(t.locked).toBe(true);
|
||||
expect(t.subtitle).not.toMatch(/^private:/);
|
||||
}
|
||||
expect(owner.find((t) => t.name === 'money')?.locked).toBe(true);
|
||||
expect(owner.find((t) => t.name === 'reading')?.locked).toBeUndefined();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user