Skip to content

Commit 5a2a9f0

Browse files
committed
refactor: fix tests
1 parent 8c1ea2c commit 5a2a9f0

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

src/material/core/theming/tests/theming-definition-api.spec.ts

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,27 @@ describe('theming definition api', () => {
8383
expect(vars['version']).toBe('1');
8484
expect(vars['type']).toBe('light');
8585
expect(vars['palettes'].split(', ')).toEqual([
86-
'primary',
86+
'0',
87+
'10',
88+
'20',
89+
'25',
90+
'30',
91+
'35',
92+
'40',
93+
'50',
94+
'60',
95+
'70',
96+
'80',
97+
'90',
98+
'95',
99+
'98',
100+
'99',
101+
'100',
87102
'secondary',
88-
'tertiary',
89103
'neutral',
90104
'neutral-variant',
91105
'error',
106+
'tertiary',
92107
]);
93108
expect(vars['density']).toBe('0');
94109
expect(vars['base-tokens']).toBe('true');
@@ -114,7 +129,7 @@ describe('theming definition api', () => {
114129
--token-primary: #{map.get($data, color-tokens, (mat, theme), primary)};
115130
--token-secondary: #{map.get($data, color-tokens, (mat, theme), secondary)};
116131
--token-tertiary: #{map.get($data, color-tokens, (mat, theme), tertiary)};
117-
--palette-primary: #{map.get($data, palettes, primary, 50)};
132+
--palette-primary: #{map.get($data, palettes, 50)};
118133
--palette-secondary: #{map.get($data, palettes, secondary, 50)};
119134
--palette-tertiary: #{map.get($data, palettes, tertiary, 50)};
120135
--type: #{map.get($data, theme-type)};

0 commit comments

Comments
 (0)