Skip to content

Commit

Permalink
add: tests for gotham theme
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashutosh00710 committed Oct 2, 2021
1 parent 6c5fb58 commit 709f8fa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions __test__/fakeInputs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,14 @@ export const themes = {
lineColor: '588157',
pointColor: '344e41',
},
gotham: {
areaColor: '2aa889',
bgColor: '0c1014',
borderColor: '2aa889',
color: '2aa889',
lineColor: '599cab',
pointColor: '99d1ce',
},
default: {
areaColor: '9e4c98',
bgColor: 'ffcfe9',
Expand Down
3 changes: 2 additions & 1 deletion __test__/themes.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { selectColors } from '../styles/themes';
import { themes } from './fakeInputs';

test('Theme testing', () => {
expect.assertions(16);
expect.assertions(17);
expect(selectColors('dracula')).toEqual(themes['dracula']);
expect(selectColors('gruvbox')).toEqual(themes['gruvbox']);
expect(selectColors('github')).toEqual(themes['github']);
Expand All @@ -19,6 +19,7 @@ test('Theme testing', () => {
expect(selectColors('material-palenight')).toEqual(
themes['materialPalenight']
);
expect(selectColors('gotham')).toEqual(themes['gotham']);
expect(selectColors('green')).toEqual(themes['green']);
expect(selectColors('default')).toEqual(themes['default']);
});

0 comments on commit 709f8fa

Please sign in to comment.