it('error alert', async () => {
    const setError = jest.fn();
    const component = mount(
      <CounterInput value={21} max={20} inputKey={'cpus'} setError={setError} />
    );