UNPKG

@reown/appkit-ui

Version:

The full stack toolkit to build onchain app UX.

11 lines 409 B
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