content: publish evidence-led portfolio copy
This commit is contained in:
@@ -15,10 +15,23 @@ describe('approved public portfolio projection', () => {
|
||||
new URL('file:///prepared-assets/'),
|
||||
);
|
||||
|
||||
expect(content.identity).toEqual(expect.objectContaining({
|
||||
expect(content.identity).toMatchObject({
|
||||
name: 'Luca Pîslaru',
|
||||
role: 'System Administrator & Full-Stack Developer',
|
||||
}));
|
||||
location: { city: 'Bucharest', country: 'Romania', countryCode: 'RO' },
|
||||
});
|
||||
expect(content.experience[0]).toMatchObject({
|
||||
organization: 'Trupa lui Răzuș',
|
||||
role: 'Full-Stack Developer & Hosting Administrator (Collaborator)',
|
||||
});
|
||||
expect(content.infrastructure.featuredOperation.outcome).toMatch(/without data loss.*roughly a year/iu);
|
||||
expect(content.projects.selected.map(({ id }) => id)).toEqual([
|
||||
'private-medication-tracker',
|
||||
'footy-tracker',
|
||||
'opinion-dynamics-simulation',
|
||||
]);
|
||||
expect(content.projects.selected[1]?.contribution).toMatch(/collaborator/iu);
|
||||
expect(content.projects.selected[1]?.outcome).toMatch(/0\.942 mAP@0\.5.*0\.198/iu);
|
||||
expect(content.systemsOperations.title).toBe('Professional systems operations');
|
||||
expect(content.infrastructure.title).toBe('Secure self-hosted platform and lifecycle');
|
||||
expect(content.projects.selected).toHaveLength(3);
|
||||
@@ -59,7 +72,9 @@ describe('approved public portfolio projection', () => {
|
||||
canonicalUrl: 'https://portfolio.localhost/',
|
||||
buildId: 'preview-semantic-v1',
|
||||
});
|
||||
expect(JSON.stringify(content)).not.toMatch(/Arch Linux|CV download|heatmap|expert|percent/i);
|
||||
expect(JSON.stringify(content)).not.toMatch(
|
||||
/Arch Linux|Mihai Razus PFA|DevOps collaborator|CV download|heatmap|fully secure|production-ready|expert|percent/iu,
|
||||
);
|
||||
});
|
||||
|
||||
it('publishes only the four verified owner repositories and no private project links', async () => {
|
||||
|
||||
Reference in New Issue
Block a user