import { isPositiveNumber } from './isPositiveNumber';

describe('Utils/Math/isPositiveNumber', () => {
    it('returns true for positive numbers', () => {
        expect(isPositiveNumber(1)).toBe(true);
        expect(isPositiveNumber(98745)).toBe(true);
        expect(isPositiveNumber('2')).toBe(true);
    });
    it('returns false for any value but a positive number', () => {
        expect(isPositiveNumber(0)).toBe(false);
        expect(isPositiveNumber(-1)).toBe(false);
        expect(isPositiveNumber(Infinity)).toBe(false);
        expect(isPositiveNumber(NaN)).toBe(false);
        expect(isPositiveNumber(undefined)).toBe(false);
        expect(isPositiveNumber(null)).toBe(false);
        expect(isPositiveNumber(false)).toBe(false);
        expect(isPositiveNumber('')).toBe(false);
        expect(isPositiveNumber('-3')).toBe(false);
        expect(isPositiveNumber('0')).toBe(false);
    });
});
