Files
e-tib.com/tests/messen-content.test.ts
T
mmintelandClaude Haiku 5.5 7daa90dd89
Build & Deploy / 🔔 Notify (push) Successful in 3s
Build & Deploy / 🔍 Prepare (push) Successful in 22s
Build & Deploy / 🧪 QA (push) Successful in 1m44s
Build & Deploy / 🏗️ Build (push) Successful in 3m54s
Build & Deploy / 🚀 Deploy (push) Successful in 47s
Build & Deploy / 🧪 Post-Deploy Verification (push) Successful in 1m31s
content(messen): shorten fair names to Windenergietage and Intersolar
The location already appears in its own field, so repeating it in the
name is redundant. Use "Windenergietage" and "Intersolar" in DE, and
"Wind Energy Days" and "Intersolar" in EN.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
2026-11-15 15:37:56 +01:00

58 lines
2.5 KiB
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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'");
expect(content).toContain("date: '8. - 10. Juni 2027'");
expect(content).toContain("type: 'Messe'");
expect(content).toContain("location: 'München'");
// 2. 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'");
// 3. Windenergietage Potsdam (replaces Linstow 2026)
expect(content).not.toContain("Linstow");
expect(content).toContain("name: 'Windenergietage'");
expect(content).toContain("date: '09. - 11. November 2027'");
expect(content).toContain("type: 'Fachkongress'");
expect(content).toContain("location: 'Potsdam'");
});
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'");
expect(content).toContain("date: 'June 8–10, 2027'");
expect(content).toContain("type: 'Fair'");
expect(content).toContain("location: 'Munich'");
// 2. 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'");
// 3. Wind Energy Days Potsdam (replaces Linstow 2026)
expect(content).not.toContain("Linstow");
expect(content).toContain("name: 'Wind Energy Days'");
expect(content).toContain("date: 'November 9–11, 2027'");
expect(content).toContain("type: 'Specialist Congress'");
expect(content).toContain("location: 'Potsdam'");
});
});