fix(tests): update task-12-links test to verify minorLocations since defaultLocations was emptied
All checks were successful
Build & Deploy / 🔍 Prepare (push) Successful in 31s
Build & Deploy / 🧪 QA (push) Successful in 1m29s
Build & Deploy / 🏗️ Build (push) Successful in 2m46s
Build & Deploy / 🚀 Deploy (push) Successful in 33s
Build & Deploy / 🧪 Post-Deploy Verification (push) Successful in 1m4s
Build & Deploy / 🔔 Notify (push) Successful in 2s
All checks were successful
Build & Deploy / 🔍 Prepare (push) Successful in 31s
Build & Deploy / 🧪 QA (push) Successful in 1m29s
Build & Deploy / 🏗️ Build (push) Successful in 2m46s
Build & Deploy / 🚀 Deploy (push) Successful in 33s
Build & Deploy / 🧪 Post-Deploy Verification (push) Successful in 1m4s
Build & Deploy / 🔔 Notify (push) Successful in 2s
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import { describe, it, expect } from 'vitest';
|
import { describe, it, expect } from 'vitest';
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
import path from 'path';
|
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', () => {
|
describe('Task 12 TDD - Bohrtechnik and Reference Links', () => {
|
||||||
const deHomePath = path.join(process.cwd(), 'content', 'de', 'home.mdx');
|
const deHomePath = path.join(process.cwd(), 'content', 'de', 'home.mdx');
|
||||||
@@ -27,8 +27,9 @@ describe('Task 12 TDD - Bohrtechnik and Reference Links', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('should verify that all reference projects in map-data have no href 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
|
// Check that all minorLocations of type 'minor_node' have href undefined
|
||||||
const projects = defaultLocations.filter(loc => loc.type === 'project');
|
// since all projects were downgraded to minor nodes without links.
|
||||||
|
const projects = minorLocations.filter(loc => loc.type === 'minor_node');
|
||||||
expect(projects.length).toBeGreaterThan(0);
|
expect(projects.length).toBeGreaterThan(0);
|
||||||
|
|
||||||
projects.forEach(project => {
|
projects.forEach(project => {
|
||||||
|
|||||||
Reference in New Issue
Block a user