import { describe, expect, it } from 'vitest'
import { getTableConfig } from 'drizzle-orm/pg-core'
import { shellLayouts } from '../src/schema/shell-layouts'

describe('shell layout schema', () => {
  it('constrains device_class to desktop or mobile', () => {
    const checks = getTableConfig(shellLayouts).checks
    expect(checks).toHaveLength(1)
    expect(checks[0]?.name).toBe('shell_layouts_device_class_check')
  })
})
