fix(messen): update trade fair dates and details for 2026
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Successful in 1m9s
Build & Deploy / 🏗️ Build (push) Failing after 2m57s
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🧪 Post-Deploy Verification (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 2s
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Successful in 1m9s
Build & Deploy / 🏗️ Build (push) Failing after 2m57s
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🧪 Post-Deploy Verification (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 2s
This commit is contained in:
@@ -19,9 +19,9 @@ layout: "fullBleed"
|
||||
showFairs={true}
|
||||
showJobs={false}
|
||||
fairs={[
|
||||
{ name: 'Intersolar München', date: '2026', type: 'Messe', location: 'München', url: 'https://www.intersolar.de/' },
|
||||
{ name: 'Windenergietage Linstow', date: '2026', type: 'Fachkongress', location: 'Linstow', url: 'https://www.windenergietage.de/' },
|
||||
{ name: 'Kabel-Workshop Wiesbaden', date: '2026', type: 'Fachmesse', location: 'Wiesbaden' }
|
||||
{ name: 'Intersolar München', date: '23. - 25. Juni 2026', type: 'Messe', location: 'München', url: 'https://www.intersolar.de/' },
|
||||
{ name: 'Windenergietage Linstow', date: '10. - 12. November 2026', type: 'Fachkongress', location: 'Linstow', url: 'https://www.windenergietage.de/' },
|
||||
{ name: 'Werkstatt Kabel 2026', date: '24. - 25. November 2026', type: 'Fachtagung', location: 'Wiesbaden' }
|
||||
]}
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -19,9 +19,9 @@ layout: "fullBleed"
|
||||
showFairs={true}
|
||||
showJobs={false}
|
||||
fairs={[
|
||||
{ name: 'Intersolar Munich', date: '2026', type: 'Fair', location: 'Munich', url: 'https://www.intersolar.de/' },
|
||||
{ name: 'Wind Energy Days Linstow', date: '2026', type: 'Specialist Congress', location: 'Linstow', url: 'https://www.windenergietage.de/' },
|
||||
{ name: 'Cable Workshop Wiesbaden', date: '2026', type: 'Trade Fair', location: 'Wiesbaden' }
|
||||
{ name: 'Intersolar Munich', date: 'June 23–25, 2026', type: 'Fair', location: 'Munich', url: 'https://www.intersolar.de/' },
|
||||
{ name: 'Wind Energy Days Linstow', date: 'November 10–12, 2026', type: 'Specialist Congress', location: 'Linstow', url: 'https://www.windenergietage.de/' },
|
||||
{ name: 'Werkstatt Kabel 2026', date: 'November 24–25, 2026', type: 'Symposium', location: 'Wiesbaden' }
|
||||
]}
|
||||
/>
|
||||
</div>
|
||||
|
||||
55
tests/messen-content.test.ts
Normal file
55
tests/messen-content.test.ts
Normal file
@@ -0,0 +1,55 @@
|
||||
import { describe, it, expect } from 'vitest';
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
|
||||
describe('Messen Content and Translations', () => {
|
||||
const deMessenPath = path.join(process.cwd(), 'content', 'de', 'messen.mdx');
|
||||
const enMessenPath = path.join(process.cwd(), 'content', 'en', 'messen.mdx');
|
||||
|
||||
it('should have updated German trade fair dates and names for 2026', () => {
|
||||
const content = fs.readFileSync(deMessenPath, 'utf8');
|
||||
|
||||
// 1. Intersolar München
|
||||
expect(content).toContain("name: 'Intersolar München'");
|
||||
expect(content).toContain("date: '23. - 25. Juni 2026'");
|
||||
expect(content).toContain("type: 'Messe'");
|
||||
expect(content).toContain("location: 'München'");
|
||||
|
||||
// 2. Windenergietage Linstow
|
||||
expect(content).toContain("name: 'Windenergietage Linstow'");
|
||||
expect(content).toContain("date: '10. - 12. November 2026'");
|
||||
expect(content).toContain("type: 'Fachkongress'");
|
||||
expect(content).toContain("location: 'Linstow'");
|
||||
|
||||
// 3. Werkstatt Kabel 2026 (No "Kabel-Workshop")
|
||||
expect(content).not.toContain("Kabel-Workshop");
|
||||
expect(content).toContain("name: 'Werkstatt Kabel 2026'");
|
||||
expect(content).toContain("date: '24. - 25. November 2026'");
|
||||
expect(content).toContain("type: 'Fachtagung'");
|
||||
expect(content).toContain("location: 'Wiesbaden'");
|
||||
});
|
||||
|
||||
it('should have updated English trade fair dates and names for 2026', () => {
|
||||
const content = fs.readFileSync(enMessenPath, 'utf8');
|
||||
|
||||
// 1. Intersolar Munich
|
||||
expect(content).toContain("name: 'Intersolar Munich'");
|
||||
expect(content).toContain("date: 'June 23–25, 2026'");
|
||||
expect(content).toContain("type: 'Fair'");
|
||||
expect(content).toContain("location: 'Munich'");
|
||||
|
||||
// 2. Wind Energy Days Linstow
|
||||
expect(content).toContain("name: 'Wind Energy Days Linstow'");
|
||||
expect(content).toContain("date: 'November 10–12, 2026'");
|
||||
expect(content).toContain("type: 'Specialist Congress'");
|
||||
expect(content).toContain("location: 'Linstow'");
|
||||
|
||||
// 3. Werkstatt Kabel 2026 (No "Cable Workshop" or "Kabel Workshop")
|
||||
expect(content).not.toContain("Cable Workshop");
|
||||
expect(content).not.toContain("Kabel Workshop");
|
||||
expect(content).toContain("name: 'Werkstatt Kabel 2026'");
|
||||
expect(content).toContain("date: 'November 24–25, 2026'");
|
||||
expect(content).toContain("type: 'Symposium'");
|
||||
expect(content).toContain("location: 'Wiesbaden'");
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user