feat: Add Google Fonts integration with FontProvider and utility func… #27
Annotations
6 errors
build-test
Process completed with exit code 1.
|
src/components/__tests__/GlobalContext.test.tsx > GlobalContext > Utility Functions Integration > should handle utility function responses:
src/components/__tests__/GlobalContext.test.tsx#L690
AssertionError: expected { …(19) } to deeply equal { play: 'Custom Play' }
- Expected
+ Received
{
- "play": "Custom Play",
+ "changeDensity": "Change density",
+ "changeDensityOptions": {
+ "high": {
+ "helpText": "Show more items at once",
+ "text": "High",
+ },
+ "low": {
+ "helpText": "Show fewer items at once",
+ "text": "Low",
+ },
+ },
+ "changeLayout": "Change layout",
+ "changeLayoutOptions": {
+ "alternating": {
+ "helpText": "Show cards in a vertical layout with alternating fashion",
+ "text": "Alternating",
+ },
+ "horizontal": {
+ "helpText": "Show cards in a horizontal layout",
+ "text": "Horizontal",
+ },
+ "horizontal_all": {
+ "helpText": "Show all cards in a horizontal layout",
+ "text": "Show all cards",
+ },
+ "vertical": {
+ "helpText": "Show cards in a vertical layout",
+ "text": "Vertical",
+ },
+ },
+ "clearSearch": "Clear Search",
+ "dark": "Switch to Dark Mode",
+ "first": "Go to First",
+ "jumpTo": "Jump to",
+ "last": "Go to Last",
+ "light": "Switch to Light Mode",
+ "next": "Next",
+ "nextMatch": "Next Match",
+ "play": "Play Slideshow",
+ "previous": "Previous",
+ "previousMatch": "Previous Match",
+ "searchAriaLabel": "Search timeline content",
+ "searchPlaceholder": "Search Timeline",
+ "stop": "Stop Slideshow",
+ "timelinePoint": "Timeline point",
}
❯ src/components/__tests__/GlobalContext.test.tsx:690:40
|
src/components/__tests__/GlobalContext.test.tsx > GlobalContext > Utility Functions Integration > should call utility functions with correct parameters:
src/components/__tests__/GlobalContext.test.tsx#L675
AssertionError: expected "spy" to be called at least once
❯ src/components/__tests__/GlobalContext.test.tsx:675:41
|
src/components/__tests__/GlobalContext.test.tsx > GlobalContext > Slideshow and Interactions > should compute slideshow type based on mode:
src/components/__tests__/GlobalContext.test.tsx#L639
AssertionError: expected 'reveal' to be 'slide_in' // Object.is equality
Expected: "slide_in"
Received: "reveal"
❯ src/components/__tests__/GlobalContext.test.tsx:639:42
|
src/components/__tests__/GlobalContext.test.tsx > GlobalContext > Props Merging > should merge theme with defaults:
src/components/__tests__/GlobalContext.test.tsx#L549
AssertionError: expected { cardBgColor: '#ffffff', …(34) } to deeply equal { primary: '#ff0000', …(20) }
- Expected
+ Received
{
+ "buttonActiveBgColor": "#007FFF",
+ "buttonActiveBorderColor": "#007FFF",
+ "buttonActiveIconColor": "#ffffff",
+ "buttonBorderColor": "#e2e8f0",
+ "buttonHoverBgColor": "#e2e8f0",
+ "buttonHoverBorderColor": "#007FFF",
"cardBgColor": "#ffffff",
"cardDetailsBackGround": "#ffffff",
- "cardDetailsColor": "#000",
- "cardMediaBgColor": "#ffffff",
- "cardSubtitleColor": "#000",
- "cardTitleColor": "#000",
- "detailsColor": "#000",
- "iconBackgroundColor": "#ffffff",
- "nestedCardBgColor": "#ffffff",
- "nestedCardDetailsBackGround": "#ffffff",
- "nestedCardDetailsColor": "#000",
- "nestedCardSubtitleColor": "#000",
- "nestedCardTitleColor": "#000",
+ "cardDetailsColor": "#374151",
+ "cardMediaBgColor": "#f8fafc",
+ "cardSubtitleColor": "#6b7280",
+ "cardTitleColor": "#007FFF",
+ "darkToggleActiveBgColor": "#007FFF",
+ "darkToggleActiveBorderColor": "#007FFF",
+ "darkToggleActiveIconColor": "#ffffff",
+ "darkToggleGlowColor": "rgba(0, 127, 255, 0.2)",
+ "detailsColor": "#374151",
+ "glowColor": "rgba(0, 127, 255, 0.2)",
+ "iconBackgroundColor": "#007FFF",
+ "iconColor": "#007FFF",
+ "nestedCardBgColor": "#f8fafc",
+ "nestedCardDetailsBackGround": "#f8fafc",
+ "nestedCardDetailsColor": "#374151",
+ "nestedCardSubtitleColor": "#6b7280",
+ "nestedCardTitleColor": "#1f2937",
"primary": "#ff0000",
+ "searchHighlightColor": "rgba(0, 127, 255, 0.2)",
"secondary": "#00ff00",
- "textColor": "#000",
- "titleColor": "#0f52ba",
- "titleColorActive": "#0f52ba",
- "toolbarBgColor": "#ffffff",
- "toolbarBtnBgColor": "#0f52ba",
- "toolbarTextColor": "#000",
+ "shadowColor": "rgba(0, 0, 0, 0.1)",
+ "timelineBgColor": "#ffffff",
+ "titleColor": "#007FFF",
+ "titleColorActive": "#007FFF",
+ "toolbarBgColor": "#f1f5f9",
+ "toolbarBtnBgColor": "#ffffff",
+ "toolbarTextColor": "#1e293b",
}
❯ src/components/__tests__/GlobalContext.test.tsx:549:34
|
src/components/__tests__/GlobalContext.test.tsx > GlobalContext > Props Merging > should merge button texts with defaults:
src/components/__tests__/GlobalContext.test.tsx#L525
AssertionError: expected { …(19) } to deeply equal { first: 'First', last: 'Last', …(12) }
- Expected
+ Received
{
- "clearSearch": "Clear",
- "dark": "Dark",
+ "changeDensity": "Change density",
+ "changeDensityOptions": {
+ "high": {
+ "helpText": "Show more items at once",
+ "text": "High",
+ },
+ "low": {
+ "helpText": "Show fewer items at once",
+ "text": "Low",
+ },
+ },
+ "changeLayout": "Change layout",
+ "changeLayoutOptions": {
+ "alternating": {
+ "helpText": "Show cards in a vertical layout with alternating fashion",
+ "text": "Alternating",
+ },
+ "horizontal": {
+ "helpText": "Show cards in a horizontal layout",
+ "text": "Horizontal",
+ },
+ "horizontal_all": {
+ "helpText": "Show all cards in a horizontal layout",
+ "text": "Show all cards",
+ },
+ "vertical": {
+ "helpText": "Show cards in a vertical layout",
+ "text": "Vertical",
+ },
+ },
+ "clearSearch": "Clear Search",
+ "dark": "Switch to Dark Mode",
"first": "First",
+ "jumpTo": "Jump to",
"last": "Last",
- "light": "Light",
+ "light": "Switch to Light Mode",
"next": "Next",
"nextMatch": "Next Match",
"play": "Start",
"previous": "Previous",
"previousMatch": "Previous Match",
- "searchAriaLabel": "Search timeline",
- "searchPlaceholder": "Search...",
+ "searchAriaLabel": "Search timeline content",
+ "searchPlaceholder": "Search Timeline",
"stop": "Pause",
- "timelinePoint": "Timeline Point",
+ "timelinePoint": "Timeline point",
}
❯ src/components/__tests__/GlobalContext.test.tsx:525:40
|