Archived
This commit is contained in:
2
test/mphToKmph/mphToKmph.js
Normal file
2
test/mphToKmph/mphToKmph.js
Normal file
@ -0,0 +1,2 @@
|
||||
const mphToKmph = (mph) => 1.6093440006146922 * mph;
|
||||
module.exports = mphToKmph;
|
||||
9
test/mphToKmph/mphToKmph.test.js
Normal file
9
test/mphToKmph/mphToKmph.test.js
Normal 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);
|
||||
});
|
||||
Reference in New Issue
Block a user