Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Commit 73ae286

Browse files
committed
WIP: Inline 2 destructured enum members to avoid variable name confusion
1 parent a76fa79 commit 73ae286

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

test/unit/mdc-slider/foundation.test.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,9 @@ import {setupFoundationTest} from '../helpers/setup';
3232
import {cssClasses} from '../../../packages/mdc-slider/constants';
3333
import MDCSliderFoundation from '../../../packages/mdc-slider/foundation';
3434

35-
const {TRANSFORM} = StandardCssPropertyName;
36-
3735
suite('MDCSliderFoundation');
3836

39-
const TRANSFORM_PROP = getCorrectPropertyName(window, TRANSFORM);
37+
const TRANSFORM_PROP = getCorrectPropertyName(window, StandardCssPropertyName.TRANSFORM);
4038

4139
test('exports cssClasses', () => {
4240
assert.property(MDCSliderFoundation, 'cssClasses');

test/unit/mdc-slider/helpers.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ import {setupFoundationTest} from '../helpers/setup';
2828

2929
import MDCSliderFoundation from '../../../packages/mdc-slider/foundation';
3030

31-
const {TRANSFORM} = StandardCssPropertyName;
32-
33-
export const TRANSFORM_PROP = getCorrectPropertyName(window, TRANSFORM);
31+
export const TRANSFORM_PROP = getCorrectPropertyName(window, StandardCssPropertyName.TRANSFORM);
3432

3533
export function setupEventTest() {
3634
const {foundation, mockAdapter} = setupFoundationTest(MDCSliderFoundation);

0 commit comments

Comments
 (0)