Skip to content

Commit 0237fda

Browse files
[test] Split infinitive
Same as #24884. We will need an eslint rule / make the API not work at one point.
1 parent 24a4e65 commit 0237fda

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

packages/mui-codemod/src/deprecations/typography-props/typography-props.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ describe('@mui/codemod', () => {
2828
it('actual.js should not be equal to expected.js', () => {
2929
const actual = read('./test-cases/actual.js');
3030
const expected = read('./test-cases/expected.js');
31-
expect(actual).to.not.equal(expected);
31+
expect(actual).not.to.equal(expected);
3232
});
3333
});
3434

@@ -58,7 +58,7 @@ describe('@mui/codemod', () => {
5858
it('theme.actual.js should not be equal to theme.expected.js', () => {
5959
const actual = read('./test-cases/theme.actual.js');
6060
const expected = read('./test-cases/theme.expected.js');
61-
expect(actual).to.not.equal(expected);
61+
expect(actual).not.to.equal(expected);
6262
});
6363
});
6464

packages/mui-codemod/src/v6.0.0/list-item-button-prop/list-item-button-prop.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ describe('@mui/codemod', () => {
2828
it('actual.js should not be equal to expected.js', () => {
2929
const actual = read('./test-cases/actual.js');
3030
const expected = read('./test-cases/expected.js');
31-
expect(actual).to.not.equal(expected);
31+
expect(actual).not.to.equal(expected);
3232
});
3333
});
3434

@@ -58,7 +58,7 @@ describe('@mui/codemod', () => {
5858
it('theme.actual.js should not be equal to theme.expected.js', () => {
5959
const actual = read('./test-cases/theme.actual.js');
6060
const expected = read('./test-cases/theme.expected.js');
61-
expect(actual).to.not.equal(expected);
61+
expect(actual).not.to.equal(expected);
6262
});
6363
});
6464

packages/mui-material/src/Dialog/Dialog.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ describe('<Dialog />', () => {
8888
</Dialog>,
8989
);
9090

91-
expect(document.querySelector(`.${classes.scrollBody} > .${classes.paper}`)).to.not.equal(null);
92-
expect(classes.paperScrollBody).to.not.equal(null);
91+
expect(document.querySelector(`.${classes.scrollBody} > .${classes.paper}`)).not.to.equal(null);
92+
expect(classes.paperScrollBody).not.to.equal(null);
9393
});
9494

9595
it('should work correctly when using css selectors for scroll="paper"', () => {
@@ -99,10 +99,10 @@ describe('<Dialog />', () => {
9999
</Dialog>,
100100
);
101101

102-
expect(document.querySelector(`.${classes.scrollPaper} > .${classes.paper}`)).to.not.equal(
102+
expect(document.querySelector(`.${classes.scrollPaper} > .${classes.paper}`)).not.to.equal(
103103
null,
104104
);
105-
expect(classes.paperScrollPaper).to.not.equal(null);
105+
expect(classes.paperScrollPaper).not.to.equal(null);
106106
});
107107

108108
it('should render with a TransitionComponent', () => {

packages/mui-material/src/styles/createTheme.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,8 @@ describe('createTheme', () => {
212212
cssVariables: true,
213213
colorSchemes: { dark: true },
214214
});
215-
expect(theme.colorSchemes.light).to.not.equal(undefined);
216-
expect(theme.colorSchemes.dark).to.not.equal(undefined);
215+
expect(theme.colorSchemes.light).not.to.equal(undefined);
216+
expect(theme.colorSchemes.dark).not.to.equal(undefined);
217217
});
218218

219219
it('should not have light if default color scheme is set to dark', () => {
@@ -223,7 +223,7 @@ describe('createTheme', () => {
223223
defaultColorScheme: 'dark',
224224
});
225225
expect(theme.colorSchemes.light).to.equal(undefined);
226-
expect(theme.colorSchemes.dark).to.not.equal(undefined);
226+
expect(theme.colorSchemes.dark).not.to.equal(undefined);
227227
});
228228

229229
it('should be able to customize tonal offset', () => {

0 commit comments

Comments
 (0)