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

import { normalizeWorkerDeviceType } from './worker-auth-policy.js'

test('worker device types use separate PC and mobile buckets', () => {
  assert.equal(normalizeWorkerDeviceType('pc'), 'pc')
  assert.equal(normalizeWorkerDeviceType('desktop'), 'pc')
  assert.equal(normalizeWorkerDeviceType('mobile'), 'mobile')
  assert.equal(normalizeWorkerDeviceType('tablet'), 'mobile')
})
