feat: publish HoloLake model-native living system source
This commit is contained in:
parent
6ad10edde1
commit
c395dd3a99
2467 changed files with 615073 additions and 0 deletions
11
product-source/hololake-platform/src/lib/aiFeatures.test.ts
Normal file
11
product-source/hololake-platform/src/lib/aiFeatures.test.ts
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import { describe, expect, it } from 'vitest'
|
||||
import { areAiFeaturesEnabled } from './aiFeatures'
|
||||
|
||||
describe('areAiFeaturesEnabled', () => {
|
||||
it('defaults AI features on unless the user explicitly disables them', () => {
|
||||
expect(areAiFeaturesEnabled(undefined)).toBe(true)
|
||||
expect(areAiFeaturesEnabled({ ai_features_enabled: null })).toBe(true)
|
||||
expect(areAiFeaturesEnabled({ ai_features_enabled: true })).toBe(true)
|
||||
expect(areAiFeaturesEnabled({ ai_features_enabled: false })).toBe(false)
|
||||
})
|
||||
})
|
||||
Loading…
Reference in a new issue