Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 2a9f414e87 | |||
| 652bd92321 | |||
| 3ea8f21294 | |||
| 3a216b3961 |
@@ -208,7 +208,7 @@ export function CertificatesBlock({ badge, title, description, certificates = de
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className={`mt-auto inline-flex items-center text-sm font-bold uppercase tracking-wider transition-all ${
|
<div className={`mt-auto inline-flex items-center gap-2 text-sm font-bold uppercase tracking-wider transition-all duration-300 ${
|
||||||
cert.pdfUrl ? 'group-hover:gap-3' : ''
|
cert.pdfUrl ? 'group-hover:gap-3' : ''
|
||||||
} ${
|
} ${
|
||||||
isIso ? 'text-primary-light' : 'text-primary'
|
isIso ? 'text-primary-light' : 'text-primary'
|
||||||
@@ -216,7 +216,7 @@ export function CertificatesBlock({ badge, title, description, certificates = de
|
|||||||
{cert.pdfUrl ? (
|
{cert.pdfUrl ? (
|
||||||
<>
|
<>
|
||||||
<span>Download PDF</span>
|
<span>Download PDF</span>
|
||||||
<Download size={16} className="ml-2 group-hover:translate-y-0.5 transition-transform" />
|
<Download size={16} className="group-hover:translate-y-0.5 transition-transform" />
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
<span className="text-neutral-400">Nachweis liegt vor</span>
|
<span className="text-neutral-400">Nachweis liegt vor</span>
|
||||||
|
|||||||
@@ -140,7 +140,7 @@
|
|||||||
"prepare": "husky",
|
"prepare": "husky",
|
||||||
"preinstall": "npx only-allow pnpm"
|
"preinstall": "npx only-allow pnpm"
|
||||||
},
|
},
|
||||||
"version": "2.4.44",
|
"version": "2.4.46",
|
||||||
"pnpm": {
|
"pnpm": {
|
||||||
"onlyBuiltDependencies": [
|
"onlyBuiltDependencies": [
|
||||||
"@parcel/watcher",
|
"@parcel/watcher",
|
||||||
|
|||||||
@@ -2,6 +2,8 @@ import { describe, it, expect } from 'vitest';
|
|||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
import { defaultCertificates } from '../components/blocks/CertificatesBlock';
|
import { defaultCertificates } from '../components/blocks/CertificatesBlock';
|
||||||
|
|
||||||
|
import path from 'path';
|
||||||
|
|
||||||
describe('Certificates & Insurance Integration (DE + EN)', () => {
|
describe('Certificates & Insurance Integration (DE + EN)', () => {
|
||||||
it('includes the new RheinLand Betriebshaftpflichtversicherung in defaultCertificates (DE)', () => {
|
it('includes the new RheinLand Betriebshaftpflichtversicherung in defaultCertificates (DE)', () => {
|
||||||
const haftpflichtCert = defaultCertificates.find(
|
const haftpflichtCert = defaultCertificates.find(
|
||||||
@@ -13,14 +15,14 @@ describe('Certificates & Insurance Integration (DE + EN)', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('verifies that content/en/zertifikate.mdx includes Commercial Liability Insurance (EN)', () => {
|
it('verifies that content/en/zertifikate.mdx includes Commercial Liability Insurance (EN)', () => {
|
||||||
const enMdx = fs.readFileSync('/Volumes/Alpha SSD/Coding/e-tib.com/content/en/zertifikate.mdx', 'utf-8');
|
const enMdx = fs.readFileSync(path.join(__dirname, '../content/en/zertifikate.mdx'), 'utf-8');
|
||||||
expect(enMdx).toContain("title: 'Commercial Liability Insurance'");
|
expect(enMdx).toContain("title: 'Commercial Liability Insurance'");
|
||||||
expect(enMdx).toContain("pdfUrl: '/assets/certificates/betriebshaftpflicht.pdf'");
|
expect(enMdx).toContain("pdfUrl: '/assets/certificates/betriebshaftpflicht.pdf'");
|
||||||
expect(enMdx).toContain("date: '25.03.2026'");
|
expect(enMdx).toContain("date: '25.03.2026'");
|
||||||
});
|
});
|
||||||
|
|
||||||
it('verifies that the PDF asset exists in public/assets/certificates/betriebshaftpflicht.pdf', () => {
|
it('verifies that the PDF asset exists in public/assets/certificates/betriebshaftpflicht.pdf', () => {
|
||||||
const filePath = '/Volumes/Alpha SSD/Coding/e-tib.com/public/assets/certificates/betriebshaftpflicht.pdf';
|
const filePath = path.join(__dirname, '../public/assets/certificates/betriebshaftpflicht.pdf');
|
||||||
expect(fs.existsSync(filePath)).toBe(true);
|
expect(fs.existsSync(filePath)).toBe(true);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user