import {expect, test} from 'bun:test'

import {canonicalPair} from './dms'

test('canonicalPair orders the pair regardless of argument order', () => {
  const a = '11111111-1111-1111-1111-111111111111'
  const b = '22222222-2222-2222-2222-222222222222'
  expect(canonicalPair(a, b)).toEqual([a, b])
  expect(canonicalPair(b, a)).toEqual([a, b])
})
