File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /usr/bin/env sh
22. " $( dirname -- " $0 " ) /_/husky.sh"
33
4- npx lint-staged
4+ npx lint-staged -q
Original file line number Diff line number Diff line change 1+ import { describe , expect , it } from "vitest" ;
2+ import { themes , getThemeByName } from "../src/cards/themes" ;
3+
4+ describe ( "Themes" , ( ) => {
5+ it ( "should return the darcula theme" , ( ) => {
6+ expect ( getThemeByName ( "darcula" ) ) . toEqual ( themes . get ( "darcula" ) ) ;
7+ } ) ;
8+
9+ it ( "should return the github_dark theme" , ( ) => {
10+ expect ( getThemeByName ( "github_dark" ) ) . toEqual ( themes . get ( "github_dark" ) ) ;
11+ } ) ;
12+
13+ it ( "should return the material theme" , ( ) => {
14+ expect ( getThemeByName ( "material" ) ) . toEqual ( themes . get ( "material" ) ) ;
15+ } ) ;
16+
17+ it ( "should return the github theme (since it's the default)" , ( ) => {
18+ expect ( getThemeByName ( "themeWithThisNameDoesNotExist" ) ) . toEqual (
19+ themes . get ( "github" )
20+ ) ;
21+ } ) ;
22+ } ) ;
You can’t perform that action at this time.
0 commit comments