import { describe, expect, it } from 'vitest'
import { createMemoryCartStore } from './testing.js'

describe('@platform-modules/commerce-cart/testing barrel', () => {
  it('exports createMemoryCartStore', () => {
    expect(typeof createMemoryCartStore).toBe('function')
    expect(createMemoryCartStore()).toEqual(
      expect.objectContaining({
        load: expect.any(Function),
        save: expect.any(Function),
        merge: expect.any(Function),
      }),
    )
  })
})
