mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-05 00:01:37 +08:00
Added jest test and renamed file
This commit is contained in:
13
Conversions/test/MeterToFeetConversion.test.js
Normal file
13
Conversions/test/MeterToFeetConversion.test.js
Normal file
@ -0,0 +1,13 @@
|
||||
import { meterToFeet, feetToMeter } from "../MeterToFeetConversion";
|
||||
|
||||
describe('Testing conversion of Meter to Feet', () => {
|
||||
it('with feet value', () => {
|
||||
expect(meterToFeet(30.48)).toBe(100)
|
||||
})
|
||||
})
|
||||
|
||||
describe('Testing conversion of Feet to Meter', () => {
|
||||
it('with feet value', () => {
|
||||
expect(feetToMeter(10)).toBe(3.048)
|
||||
})
|
||||
})
|
Reference in New Issue
Block a user