import { validateEnv } from './env';

describe('validateEnv', () => {
  it('accepts the minimum backend environment', () => {
    const env = validateEnv({
      DATABASE_URL: 'mysql://root:123456@127.0.0.1:3306/work_admin',
      AUTH_SECRET: 'replace-with-a-long-random-secret',
    });

    expect(env.PORT).toBe(3001);
    expect(env.DATABASE_URL).toContain('work_admin');
  });
});
