Untitled
Anonymous
plain_text
03/15/2023 12:47 AM
624 B
17
Indexable
describe('smallestInt', () => {
it('should throw an error if the argument is not an array', () => {
expect(() => smallestInt("string")).toThrow("Not a valid argument")
})
it('should be return smallest number in an array', () => {
expect(smallestInt([2,4,5,88,0,1])).toBe(0);
})
it('should be return smallest number in an array', () => {
expect(smallestInt([5,6,90,123,657,4])).toBe(4);
})
})Editor is loading...