Skip to content

Commit 3321ce9

Browse files
committed
test(theme): update getCustomTheme tests to include top level vars
1 parent cea92f6 commit 3321ce9

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

core/src/utils/theme.spec.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ import { generateComponentThemeCSS, generateCSSVars, generateGlobalThemeCSS, get
88
describe('getCustomTheme', () => {
99
it('should return the custom theme if no mode overrides exist', () => {
1010
const customTheme = {
11+
radii: {
12+
sm: '14px',
13+
md: '18px',
14+
lg: '22px',
15+
},
1116
components: {
1217
IonChip: {
1318
hue: {
@@ -27,6 +32,11 @@ describe('getCustomTheme', () => {
2732

2833
it('should combine only with ios overrides if mode is ios', () => {
2934
const customTheme = {
35+
radii: {
36+
sm: '14px',
37+
md: '18px',
38+
lg: '22px',
39+
},
3040
components: {
3141
IonChip: {
3242
hue: {
@@ -64,6 +74,11 @@ describe('getCustomTheme', () => {
6474
const result = getCustomTheme(customTheme, 'ios');
6575

6676
const expected = {
77+
radii: {
78+
sm: '14px',
79+
md: '18px',
80+
lg: '22px',
81+
},
6782
components: {
6883
IonChip: {
6984
hue: {
@@ -81,6 +96,11 @@ describe('getCustomTheme', () => {
8196

8297
it('should combine only with md overrides if mode is md', () => {
8398
const customTheme = {
99+
radii: {
100+
sm: '14px',
101+
md: '18px',
102+
lg: '22px',
103+
},
84104
components: {
85105
IonChip: {
86106
hue: {
@@ -118,6 +138,11 @@ describe('getCustomTheme', () => {
118138
const result = getCustomTheme(customTheme, 'md');
119139

120140
const expected = {
141+
radii: {
142+
sm: '14px',
143+
md: '18px',
144+
lg: '22px',
145+
},
121146
components: {
122147
IonChip: {
123148
hue: {

0 commit comments

Comments
 (0)