import { DbPaths } from '../../../../../src/modules/netaclaw/runtime/weixin_db/db_paths.js';

describe('DbPaths', () => {
  it('resolves paths under seed dir', () => {
    const p = new DbPaths('C:/seed');
    expect(p.messageDb.replace(/\\/g, '/')).toBe('C:/seed/db_storage/message/message_0.db');
    expect(p.contactDb.replace(/\\/g, '/')).toBe('C:/seed/db_storage/contact/contact.db');
    expect(p.sessionDb.replace(/\\/g, '/')).toBe('C:/seed/db_storage/session/session.db');
  });

  it('allDbs returns all 17 DB paths', () => {
    const p = new DbPaths('C:/seed');
    expect(p.allDbs().length).toBeGreaterThanOrEqual(15);
  });
});
