Fix issues with #922

This commit is contained in:
Angelos Chalaris
2019-02-23 12:38:16 +02:00
parent b944abecfc
commit 1a11040313
2 changed files with 0 additions and 0 deletions

9
test/mapNumRange.test.js Normal file
View 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);
});