@reown/appkit-ui
Version:
#### 🔗 [Website](https://reown.com/appkit)
11 lines • 409 B
JavaScript
import { describe, expect, it } from 'vitest';
import { MathUtil } from '../src/utils/MathUtil.js';
describe('MathUtil', () => {
it('should interpolate as expected', () => {
const inputRange = [0, 100];
const outputRange = [0, 1];
const value = 50;
expect(MathUtil.interpolate(inputRange, outputRange, value)).toEqual(0.5);
});
});
//# sourceMappingURL=Math.test.js.map