Skip to content

Commit 5d203b5

Browse files
author
Andrew Seguin
committed
refactor: remove test misuing our API
1 parent fd0d967 commit 5d203b5

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

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

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -79,26 +79,6 @@ describe('theming api', () => {
7979
expectNoWarning(/The same color styles are generated multiple times/);
8080
});
8181

82-
it('should be possible to modify color configuration directly', () => {
83-
const result = transpile(`
84-
$theme: mat.m2-define-light-theme((
85-
color: (
86-
primary: mat.m2-define-palette(mat.$m2-red-palette),
87-
accent: mat.m2-define-palette(mat.$m2-blue-palette),
88-
)
89-
));
90-
91-
// Updates the "icon" foreground color to hotpink.
92-
$color: map-get($theme, color);
93-
$theme: map-merge($color,
94-
(foreground: map-merge(map-get($color, foreground), (icon: hotpink))));
95-
96-
@include mat.all-component-themes($theme);
97-
`);
98-
99-
expect(result).toContain(': hotpink');
100-
});
101-
10282
it('should warn if default density styles are duplicated', () => {
10383
spyOn(process.stderr, 'write');
10484

0 commit comments

Comments
 (0)