feat: publish HoloLake model-native living system source

This commit is contained in:
冰朔 2026-08-03 10:04:41 +08:00
commit c395dd3a99
2467 changed files with 615073 additions and 0 deletions

View file

@ -0,0 +1,18 @@
import { describe, expect, it } from 'vitest'
import { humanizePropertyKey } from './propertyLabels'
describe('humanizePropertyKey', () => {
it('humanizes snake_case property keys for display', () => {
expect(humanizePropertyKey('belongs_to')).toBe('Belongs to')
expect(humanizePropertyKey('related_to')).toBe('Related to')
})
it('preserves already-humanized labels', () => {
expect(humanizePropertyKey('Belongs to')).toBe('Belongs to')
expect(humanizePropertyKey('Has')).toBe('Has')
})
it('keeps acronym casing when no separators are present', () => {
expect(humanizePropertyKey('URL')).toBe('URL')
})
})