Compare commits
2 Commits
v2.2.13-rc
...
v2.2.13-rc
| Author | SHA1 | Date | |
|---|---|---|---|
| b7d9a4b0d0 | |||
| 6c8614f147 |
1954
lib/map-data.ts
1954
lib/map-data.ts
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,7 @@
|
||||
import { describe, it, expect } from 'vitest';
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
import { defaultLocations } from '../lib/map-data';
|
||||
import { defaultLocations, minorLocations } from '../lib/map-data';
|
||||
|
||||
describe('Task 12 TDD - Bohrtechnik and Reference Links', () => {
|
||||
const deHomePath = path.join(process.cwd(), 'content', 'de', 'home.mdx');
|
||||
@@ -27,10 +27,11 @@ describe('Task 12 TDD - Bohrtechnik and Reference Links', () => {
|
||||
});
|
||||
|
||||
it('should verify that all reference projects in map-data have no href links', () => {
|
||||
// Check that all defaultLocations of type 'project' have href undefined or removed
|
||||
const projects = defaultLocations.filter(loc => loc.type === 'project');
|
||||
// Check that all minorLocations of type 'minor_node' have href undefined
|
||||
// since all projects were downgraded to minor nodes without links.
|
||||
const projects = minorLocations.filter(loc => loc.type === 'minor_node');
|
||||
expect(projects.length).toBeGreaterThan(0);
|
||||
|
||||
|
||||
projects.forEach(project => {
|
||||
expect(project.href).toBeUndefined();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user