import { describe, it, expect } from 'vitest';
import { HouseholdModel } from '../../src/schemas/household.schema.js';

describe('HouseholdModel', () => {
  it('is a valid mongoose model', () => {
    expect(HouseholdModel.modelName).toBe('Household');
  });

  it('has expected schema paths', () => {
    const paths = Object.keys(HouseholdModel.schema.paths);
    expect(paths).toContain('name');
    expect(paths).toContain('ownerUserId');
    expect(paths).toContain('members');
    expect(paths).toContain('inviteCode');
    expect(paths).toContain('settings');
    expect(paths).toContain('createdAt');
    expect(paths).toContain('updatedAt');
  });
});
