MCPcopy Index your code
hub / github.com/darkreader/darkreader / math.tests.ts

File math.tests.ts

tests/unit/utils/math.tests.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import {scale, clamp, multiplyMatrices} from '../../../src/utils/math';
2
3test('Scale', () => {
4 expect(scale(5, 0, 10, 0, 100)).toEqual(50);

Callers

nothing calls this directly

Calls 3

scaleFunction · 0.90
clampFunction · 0.90
multiplyMatricesFunction · 0.90

Tested by

no test coverage detected