Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

428 B
Raw Blame
import { describe, expect, it } from 'vitest'
import { CountryCode, CurrencyCode, DimensionUnit, LocaleCode, WeightUnit } from '../src'

describe('code lists', () => {
  it('name each code by its standard value', () => {
    expect(CountryCode.US).toBe('US')
    expect(CurrencyCode.EUR).toBe('EUR')
    expect(LocaleCode.pt_BR).toBe('pt-BR')
    expect(WeightUnit.kg).toBe('kg')
    expect(DimensionUnit.ft).toBe('ft')
  })
})