Test directory up-to-date
This commit is contained in:
9
test/mphToKmph.test.js
Normal file
9
test/mphToKmph.test.js
Normal file
@ -0,0 +1,9 @@
|
||||
const expect = require('expect');
|
||||
const {mphToKmph} = require('./_30s.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