Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

460 B
Raw Blame
// Fixture carve-out: a millisecond field from production code, not a measured duration.
import { describe, expect, it } from 'vitest';

import { resolveUploadOptions } from '../remoteFileUpload';

describe('resolveUploadOptions', () => {
  it('keeps the upload timeout under the gateway limit', () => {
    const options = resolveUploadOptions({ size: 1024 });

    expect(options.timeout).toBeLessThan(30_000);
    expect(options.retries).toBe(2);
  });
});