@react-native/virtualized-lists 0.72.0 → 0.72.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,32 +0,0 @@
1
- /**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @format
8
- * @oncall react_native
9
- */
10
-
11
- 'use strict';
12
-
13
- describe('clamp', () => {
14
- const clamp = require('../clamp');
15
-
16
- it('should return the value if the value does not exceed boundaries', () => {
17
- expect(clamp(0, 5, 10)).toEqual(5);
18
- expect(clamp(5, 5, 10)).toEqual(5);
19
- expect(clamp(0, 5, 5)).toEqual(5);
20
- expect(clamp(5, 5, 5)).toEqual(5);
21
- });
22
-
23
- it('should return the min value if the value is too low', () => {
24
- expect(clamp(10, 5, 20)).toEqual(10);
25
- expect(clamp(10, 9, 20)).toEqual(10);
26
- });
27
-
28
- it('should return the max value if the value is too high', () => {
29
- expect(clamp(10, 25, 20)).toEqual(20);
30
- expect(clamp(10, 21, 20)).toEqual(20);
31
- });
32
- });