import { describe, expect, it } from 'vitest'
import { createIdempotentCommand } from '../../commands/idempotency'

describe('idempotent command envelope', () => {
  it('keeps one key for retries of the same envelope', () => {
    const command = createIdempotentCommand({ value: 1 })
    const retry = command
    expect(retry.idempotencyKey).toBe(command.idempotencyKey)
  })
})
