mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2026-03-13 15:21:15 +08:00
conversion: liters to US gallons (#1255)
This commit is contained in:
5
Conversions/test/LitersToUSGallons.test.js
Normal file
5
Conversions/test/LitersToUSGallons.test.js
Normal file
@@ -0,0 +1,5 @@
|
||||
import litersToUSGallons from '../LitersToUSGallons'
|
||||
|
||||
test('Convert 50 liters to US gallons', () => {
|
||||
expect(parseFloat(litersToUSGallons(50).toFixed(2))).toBe(13.21)
|
||||
})
|
||||
Reference in New Issue
Block a user