import assert from 'node:assert/strict'
import test from 'node:test'

import { buildMockWorkOrderShopOptions } from '../src/utils/mock-work-order.ts'

test('本地 Mock 店铺选择仅展示启用店铺', () => {
  assert.deepEqual(
    buildMockWorkOrderShopOptions([
      { sellerId: 'seller-1', shopId: 'shop-1', shopName: '测试店铺', enabled: true },
      { sellerId: 'seller-2', shopId: 'shop-2', shopName: '已停用店铺', enabled: false },
    ]),
    [{ value: 'seller-1', label: '测试店铺（seller-1）' }],
  )
})
