merge: Absolute value (#866)

This commit is contained in:
YATIN KATHURIA
2021-12-11 13:29:19 +05:30
committed by GitHub
parent 7560beb068
commit 4d55b40c9e
2 changed files with 15 additions and 12 deletions

View File

@@ -10,4 +10,9 @@ describe('absVal', () => {
const absOfPositiveNumber = absVal(50)
expect(absOfPositiveNumber).toBe(50)
})
it('should return an absolute value of a zero number', () => {
const absOfPositiveNumber = absVal(0)
expect(absOfPositiveNumber).toBe(0)
})
})