Math.min.js 269 B

123456789
  1. test("basic functionality", () => {
  2. expect(Math.min).toHaveLength(2);
  3. expect(Math.min(1)).toBe(1);
  4. expect(Math.min(2, 1)).toBe(1);
  5. expect(Math.min(1, 2, 3)).toBe(1);
  6. expect(Math.min(NaN)).toBeNaN();
  7. expect(Math.min("String", 1)).toBeNaN();
  8. });