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.

624 B
Raw Blame
import { describe, expect, it } from 'vitest'
import * as sdk from '../src'

// The code lists and money helpers live in @spree/core; clients import them
// from the SDK, so the SDK has to keep offering every one of them.
describe('@spree/core exports', () => {
  it.each([
    'CountryCode',
    'CurrencyCode',
    'DimensionUnit',
    'LocaleCode',
    'WeightUnit',
    'compareMoney',
    'decimalPlaces',
    'formatMoney',
    'isDecimalString',
    'isZeroMoney',
    'multiplyMoney',
    'negateMoney',
    'subtractMoney',
    'sumMoney',
  ])('offers %s', (name) => {
    expect(sdk).toHaveProperty(name)
  })
})