Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe("TopicIcon", () => {
* at least make sure we have an icon for each of them.
*/
test.each(rootTopicNames)("Root topics all have an icon", (name) => {
expect(rootTopicNames.length).toBe(11)
expect(rootTopicNames.length).toBe(12)
render(<RootTopicIcon name={name} />)
const svg = document.querySelector("svg")
expect(svg).toBeVisible()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,18 @@ import React from "react"

/* TODO Using any icons until we have a solution for specifying them */
export const ICON_MAP = {
Business: RiBriefcase3Line,
Energy: RiLightbulbFlashLine,
Engineering: RiRobot2Line,
"Fine Arts": RiPaletteLine,
"Health and Medicine": RiStethoscopeLine,
"Business & Management": RiBriefcase3Line,
"Energy, Climate & Sustainability": RiLightbulbFlashLine,
"Data Science, Analytics & Computer Technology": RiRobot2Line,
"Art, Design & Architecture": RiPaletteLine,
"Health & Medicine": RiStethoscopeLine,
Humanities: RiQuillPenLine,
Mathematics: RiInfinityLine,
Science: RiTestTubeLine,
"Social Science": RiUserSearchLine,
"Science & Math": RiTestTubeLine,
"Social Sciences": RiUserSearchLine,
Society: RiEarthLine,
"Teaching and Education": RiShakeHandsLine,
"Education & Teaching": RiShakeHandsLine,
Engineering: RiRobot2Line,
}

type RootTopicIconProps = { name: string }
Expand Down