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