Build & Deploy / 🔔 Notify (push) Successful in 2s
Build & Deploy / 🔍 Prepare (push) Successful in 24s
Build & Deploy / 🧪 QA (push) Successful in 2m9s
Build & Deploy / 🏗️ Build (push) Successful in 3m43s
Build & Deploy / 🚀 Deploy (push) Successful in 29s
Build & Deploy / 🧪 Post-Deploy Verification (push) Successful in 1m3s
The organiser confirmed there is no Werkstatt Kabel event next year, so the entry is removed from the DE and EN fairs list. The content test now asserts that the entry is absent instead of expecting the 2026 dates. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
52 lines
2.1 KiB
TypeScript
52 lines
2.1 KiB
TypeScript
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 list the current German trade fairs for 2027', () => {
|
||
const content = fs.readFileSync(deMessenPath, 'utf8');
|
||
|
||
// Werkstatt Kabel is no longer held (not in 2027)
|
||
expect(content).not.toContain("Werkstatt Kabel");
|
||
expect(content).not.toContain("Kabel-Workshop");
|
||
|
||
// 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. 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 list the current English trade fairs for 2027', () => {
|
||
const content = fs.readFileSync(enMessenPath, 'utf8');
|
||
|
||
// Werkstatt Kabel is no longer held (not in 2027)
|
||
expect(content).not.toContain("Werkstatt Kabel");
|
||
expect(content).not.toContain("Cable Workshop");
|
||
expect(content).not.toContain("Kabel Workshop");
|
||
|
||
// 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. 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'");
|
||
});
|
||
});
|