text: import { validate } from '@/rules/max_value';
  
  const valid = [
    0,
    '1',
    10
  ];
  
  const invalid = [
    '',
    10.01,
    11,
    [],
    undefined,
    null,
    {},
    'abc'
  ];
  
  test('validates number maximum value', () => {
    expect.assertions(11);
    const max = 10;
  
    // valid.
    valid.forEach(value => expect(validate(value, [max])).toBe(true));
  
    // invalid
    invalid.forEach(value => expect(validate(value, [max])).toBe(false));
  });
  