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 mphToKmph = (mph) => 1.6093440006146922 * mph;
module.exports = mphToKmph;

View File

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