@@ -171,7 +171,7 @@ describe('SizeAndPositionManager', () => {
171
171
172
172
describe ( 'getUpdatedOffsetForIndex' , ( ) => {
173
173
function getUpdatedOffsetForIndexHelper ( {
174
- align = ALIGNMENT . START ,
174
+ align = 'start' ,
175
175
itemCount = 10 ,
176
176
itemSize = ITEM_SIZE ,
177
177
containerSize = 50 ,
@@ -254,21 +254,21 @@ describe('SizeAndPositionManager', () => {
254
254
it ( 'should honor specified :align values' , ( ) => {
255
255
expect (
256
256
getUpdatedOffsetForIndexHelper ( {
257
- align : ALIGNMENT . START ,
257
+ align : 'start' ,
258
258
currentOffset : 0 ,
259
259
targetIndex : 5 ,
260
260
} ) ,
261
261
) . toEqual ( 50 ) ;
262
262
expect (
263
263
getUpdatedOffsetForIndexHelper ( {
264
- align : ALIGNMENT . END ,
264
+ align : 'end' ,
265
265
currentOffset : 50 ,
266
266
targetIndex : 5 ,
267
267
} ) ,
268
268
) . toEqual ( 10 ) ;
269
269
expect (
270
270
getUpdatedOffsetForIndexHelper ( {
271
- align : ALIGNMENT . CENTER ,
271
+ align : 'center' ,
272
272
currentOffset : 50 ,
273
273
targetIndex : 5 ,
274
274
} ) ,
@@ -278,21 +278,21 @@ describe('SizeAndPositionManager', () => {
278
278
it ( 'should not scroll past the safe bounds even if the specified :align requests it' , ( ) => {
279
279
expect (
280
280
getUpdatedOffsetForIndexHelper ( {
281
- align : ALIGNMENT . END ,
281
+ align : 'end' ,
282
282
currentOffset : 50 ,
283
283
targetIndex : 0 ,
284
284
} ) ,
285
285
) . toEqual ( 0 ) ;
286
286
expect (
287
287
getUpdatedOffsetForIndexHelper ( {
288
- align : ALIGNMENT . CENTER ,
288
+ align : 'center' ,
289
289
currentOffset : 50 ,
290
290
targetIndex : 1 ,
291
291
} ) ,
292
292
) . toEqual ( 0 ) ;
293
293
expect (
294
294
getUpdatedOffsetForIndexHelper ( {
295
- align : ALIGNMENT . START ,
295
+ align : 'start' ,
296
296
currentOffset : 0 ,
297
297
targetIndex : 9 ,
298
298
} ) ,
@@ -304,7 +304,7 @@ describe('SizeAndPositionManager', () => {
304
304
// Not sure if this edge case is worth "fixing" or just acknowledging...
305
305
expect (
306
306
getUpdatedOffsetForIndexHelper ( {
307
- align : ALIGNMENT . CENTER ,
307
+ align : 'center' ,
308
308
currentOffset : 0 ,
309
309
targetIndex : 8 ,
310
310
} ) ,
0 commit comments