chore: scrub personal names, maintainer URLs and local paths (P2.2)
Sample data in tests, prompts and UI placeholders uses Alex Morgan instead of the maintainer's name; decision attributions say "owner". Personal details in two test fixtures are replaced. Local paths (D:/Projects/...) and paths into the maintainer's planning repository are reworded. Clone and install URLs in CONTRIBUTING.md and the getting started guide use placeholders until the public repository location is decided (Q9). The Benchmarks page no longer names the maintainer's hive-mind repository, and the upstream fixes log names the main Waggle repository instead of an internal git host.
This commit is contained in:
@@ -33,24 +33,24 @@ describe('buildProfilePreview', () => {
|
||||
});
|
||||
|
||||
it('greets by name with the memory promise when only the name is set', () => {
|
||||
expect(buildProfilePreview({ name: 'Marko' }, at(20)))
|
||||
.toBe('Good evening, Marko. Your work will be remembered here.');
|
||||
expect(buildProfilePreview({ name: 'Alex' }, at(20)))
|
||||
.toBe('Good evening, Alex. Your work will be remembered here.');
|
||||
});
|
||||
|
||||
it('varies the salutation with the time of day', () => {
|
||||
expect(buildProfilePreview({ name: 'Marko' }, at(9))).toMatch(/^Good morning, Marko/);
|
||||
expect(buildProfilePreview({ name: 'Marko' }, at(14))).toMatch(/^Good afternoon, Marko/);
|
||||
expect(buildProfilePreview({ name: 'Marko' }, at(20))).toMatch(/^Good evening, Marko/);
|
||||
expect(buildProfilePreview({ name: 'Alex' }, at(9))).toMatch(/^Good morning, Alex/);
|
||||
expect(buildProfilePreview({ name: 'Alex' }, at(14))).toMatch(/^Good afternoon, Alex/);
|
||||
expect(buildProfilePreview({ name: 'Alex' }, at(20))).toMatch(/^Good evening, Alex/);
|
||||
});
|
||||
|
||||
it('adds a role-aware clause from the selected work type', () => {
|
||||
expect(buildProfilePreview({ name: 'Marko', workType: 'consulting' }, at(20)))
|
||||
.toBe('Good evening, Marko. Ready to pick up your consulting work?');
|
||||
expect(buildProfilePreview({ name: 'Alex', workType: 'consulting' }, at(20)))
|
||||
.toBe('Good evening, Alex. Ready to pick up your consulting work?');
|
||||
});
|
||||
|
||||
it('falls back to the free-text role when no work type is selected', () => {
|
||||
expect(buildProfilePreview({ name: 'Marko', role: 'Strategy Consultant' }, at(9)))
|
||||
.toBe('Good morning, Marko. Ready to pick up your strategy consultant work?');
|
||||
expect(buildProfilePreview({ name: 'Alex', role: 'Strategy Consultant' }, at(9)))
|
||||
.toBe('Good morning, Alex. Ready to pick up your strategy consultant work?');
|
||||
});
|
||||
|
||||
it('falls back to the raw id for an unknown work-type id', () => {
|
||||
|
||||
Reference in New Issue
Block a user