Fix issues with #922
This commit is contained in:
9
test/mapNumRange.test.js
Normal file
9
test/mapNumRange.test.js
Normal file
@ -0,0 +1,9 @@
|
||||
const expect = require('expect');
|
||||
const {mapNumRange} = require('./_30s.js');
|
||||
|
||||
test('mapNumRange is a Function', () => {
|
||||
expect(mapNumRange).toBeInstanceOf(Function);
|
||||
});
|
||||
test('Maps 5 to the range 0-100 from 0-10', () => {
|
||||
expect(distance(5,0,10,0,100)).toEqual(50);
|
||||
});
|
||||
Reference in New Issue
Block a user