format and lint

This commit is contained in:
Snarling
2022-10-01 15:15:36 -04:00
parent 9774235404
commit 3addda7173
6 changed files with 15 additions and 15 deletions

View File

@@ -241,6 +241,8 @@ describe("Finding the number furthest away from 0", () => {
expect(numeralWrapper.largestAbsoluteNumber(789123, -123456, -456789)).toEqual(789123);
});
test("Should return 0 for invalid input", () => {
expect(numeralWrapper.largestAbsoluteNumber("abc" as unknown as number, undefined, null as unknown as number)).toEqual(0);
expect(
numeralWrapper.largestAbsoluteNumber("abc" as unknown as number, undefined, null as unknown as number),
).toEqual(0);
});
});