Skip to content

Commit 764cac7

Browse files
committed
fix(material/core): theming tests
1 parent ce3c9f7 commit 764cac7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/material/core/theming/tests/m3-theme.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ describe('M3 theme', () => {
162162
}
163163
`);
164164

165-
expect(css).toContain('--mat-filled-text-field-caret-color: magenta');
166-
expect(css).not.toContain('--mat-outline-text-field-caret-color: magenta');
165+
expect(css).toContain('--mat-form-field-filled-caret-color: magenta');
166+
expect(css).not.toContain('--mat-form-field-outlined-caret-color: magenta');
167167
expectNoWarning(/`filled-caret-color` is deprecated/);
168168
});
169169

@@ -174,8 +174,8 @@ describe('M3 theme', () => {
174174
}
175175
`);
176176

177-
expect(css).toContain('--mat-filled-text-field-caret-color: magenta');
178-
expect(css).toContain('--mat-outlined-text-field-caret-color: magenta');
177+
expect(css).toContain('--mat-form-field-filled-caret-color: magenta');
178+
expect(css).toContain('--mat-form-field-outlined-caret-color: magenta');
179179
expectWarning(
180180
/Token `caret-color` is deprecated. Please use one of the following alternatives: filled-caret-color, outlined-caret-color/,
181181
);

0 commit comments

Comments
 (0)