Skip to content

Commit 2648542

Browse files
committed
Address some ESLint violations
1 parent dc87608 commit 2648542

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,14 +130,11 @@ describe('createTransitions', () => {
130130

131131
it('should return NaN when passed a negative number', () => {
132132
const zeroHeightDurationNegativeOne = getAutoHeightDuration(-1);
133-
// eslint-disable-next-line no-restricted-globals
134-
expect(isNaN(zeroHeightDurationNegativeOne)).to.equal(true);
133+
expect(Number.isNaN(zeroHeightDurationNegativeOne)).to.equal(true);
135134
const zeroHeightDurationSmallNegative = getAutoHeightDuration(-0.000001);
136-
// eslint-disable-next-line no-restricted-globals
137-
expect(isNaN(zeroHeightDurationSmallNegative)).to.equal(true);
135+
expect(Number.isNaN(zeroHeightDurationSmallNegative)).to.equal(true);
138136
const zeroHeightDurationBigNegative = getAutoHeightDuration(-100000);
139-
// eslint-disable-next-line no-restricted-globals
140-
expect(isNaN(zeroHeightDurationBigNegative)).to.equal(true);
137+
expect(Number.isNaN(zeroHeightDurationBigNegative)).to.equal(true);
141138
});
142139

143140
it('should return values for pre-calculated positive examples', () => {

0 commit comments

Comments
 (0)