Skip to content

Commit

Permalink
Added basic test
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAlvarezMelucciDCL committed Jan 16, 2025
1 parent 1a3f9f8 commit bbc4c81
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test/ecs/components/LightSource.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { Engine, components } from '../../../packages/@dcl/ecs/src'
import { testComponentSerialization } from './assertion'

describe('Generated LightSource ProtoBuf', () => {
it.only('should serialize/deserialize Point LightSource', () => {
const newEngine = Engine()
const LightSource = components.LightSource(newEngine)

testComponentSerialization(LightSource, {
type: LightSource.Type.Point({}),
active: true,
color: { r: 1, g: 1, b: 1 },
brightness: 1,
range: 10,
shadow: components.PBLightSource_ShadowType.ST_NONE
})
})
})

0 comments on commit bbc4c81

Please sign in to comment.