convertion: ounce to kilogram (#1248)

* Added ounces to kilograms convertion

* Added PR suggestions

* changed to export default
This commit is contained in:
Lcvieira2001
2022-10-31 13:35:58 -03:00
committed by GitHub
parent 7256e5313f
commit 8cbaf2e299
2 changed files with 16 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
import ouncesToKilograms from '../OuncesToKilograms'
test('Convert 60 ounces to kilograms', () => {
expect(parseFloat(ouncesToKilograms(60).toFixed(3))).toBe(1.701)
})