import { describe, expect, it } from 'vitest'
import { reconciliationKeys } from '../queries'

describe('reconciliation query keys', () => {
  it('keeps holdings and mismatch resources separate', () => {
    expect(reconciliationKeys.holdings()).not.toEqual(reconciliationKeys.mismatches('2026-08-01', '2026-08-12'))
  })

  it('includes the mismatch date window in the cache identity', () => {
    expect(reconciliationKeys.mismatches('2026-08-01', '2026-08-12')).not.toEqual(reconciliationKeys.mismatches('2026-08-02', '2026-08-12'))
  })
})
