Skip to content

Commit d25bb91

Browse files
committed
fixup! fix(material-experimental/mdc-slider): code review changes
1 parent 6a55285 commit d25bb91

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/material-experimental/mdc-slider/slider.spec.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9-
import {dispatchMouseEvent, dispatchPointerEvent, dispatchTouchEvent} from '@angular/cdk/testing/private';
9+
import {
10+
dispatchMouseEvent,
11+
dispatchPointerEvent,
12+
dispatchTouchEvent,
13+
} from '@angular/cdk/testing/private';
1014
import {Component, DebugElement, Type} from '@angular/core';
1115
import {ComponentFixture, fakeAsync, TestBed, tick, waitForAsync} from '@angular/core/testing';
1216
import {By} from '@angular/platform-browser';
@@ -335,22 +339,22 @@ function dispatchPointerOrTouchEvent(node: Node, type: PointerEventType, x?: num
335339
}
336340

337341
/** The pointer event types used by the MDC Slider. */
338-
enum PointerEventType {
342+
const enum PointerEventType {
339343
POINTER_DOWN = 'pointerdown',
340344
POINTER_UP = 'pointerup',
341345
POINTER_MOVE = 'pointermove',
342346
}
343347

344348
/** The touch event types used by the MDC Slider. */
345-
enum TouchEventType {
349+
const enum TouchEventType {
346350
TOUCH_START = 'touchstart',
347351
TOUCH_END = 'touchend',
348352
TOUCH_MOVE = 'touchmove',
349353
}
350354

351355
/** Returns the touch event equivalent of the given pointer event. */
352356
function pointerEventTypeToTouchEventType(pointerEventType: PointerEventType) {
353-
switch(pointerEventType) {
357+
switch (pointerEventType) {
354358
case PointerEventType.POINTER_DOWN:
355359
return TouchEventType.TOUCH_START;
356360
case PointerEventType.POINTER_UP:

0 commit comments

Comments
 (0)