Skip to content

Commit

Permalink
Fix: Get rid of old test
Browse files Browse the repository at this point in the history
  • Loading branch information
AntGa committed Oct 1, 2024
1 parent 67999d5 commit f1cf592
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 42 deletions.
8 changes: 4 additions & 4 deletions src/scripts/serveProjects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ export async function serveProjects(): Promise<{ projects: any[], carouselList:
const carouselList: CarouselItem[] = [];

// Filter projects that contain "carousel content" in the title
const nonCarouselProjects = projects.filter((project) => {
const nonCarouselProjects = projects.filter((project: typeof projects[0]) => {
if (project.title.toLowerCase().includes("carousel content")) {
// Extract carousel-related content
const { description, tags, cover } = project;
const { description, cover } = project;

const subheadings = description ? [description] : [];
const paragraphs = [description]; // For simplicity, using description as a placeholder
Expand All @@ -39,10 +39,10 @@ export async function serveProjects(): Promise<{ projects: any[], carouselList:
images,
});

return false; // Filter this project out from the main list
return false;
}

return true; // Keep the project in the main list
return true;
});

return { projects: nonCarouselProjects, carouselList };
Expand Down
4 changes: 2 additions & 2 deletions src/scripts/serveTeamDescriptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ export async function serveTeamDescriptions(): Promise<TeamDescriptions[]> {
// Map the results to the TeamDescriptions type
teamDescriptions = descriptions.map((team) => ({
name: team.name,
description: team.description || undefined,
tags: team.tags.map((tag) => tag.name) || undefined, // Convert tag objects to an array of tag names
description: team.description ?? undefined, // Handle null values for description
tags: team.tags.map((tag) => tag.name) || [], // Convert tag objects to an array of tag names
}));

} catch (err) {
Expand Down
36 changes: 0 additions & 36 deletions test/getMembers.test.ts

This file was deleted.

0 comments on commit f1cf592

Please sign in to comment.