This commit is contained in:
Angelos Chalaris
2018-10-16 20:22:23 +03:00
parent a9a61b4de2
commit 26afaf454c
13 changed files with 50 additions and 58 deletions

View File

@ -0,0 +1,2 @@
const kmphToMph = (kmph) => 0.621371192 * kmph;
module.exports = kmphToMph;

View File

@ -0,0 +1,9 @@
const expect = require('expect');
const kmphToMph = require('./kmphToMph.js');
test('kmphToMph is a Function', () => {
expect(kmphToMph).toBeInstanceOf(Function);
});
test('Returns mph from kph.', () => {
expect(kmphToMph(10)).toBe(6.21371192);
});