Skip to content

Commit 5c13446

Browse files
committed
pointed to the branch and made tests
1 parent a6f1c20 commit 5c13446

3 files changed

Lines changed: 21 additions & 8 deletions

File tree

package-lock.json

Lines changed: 6 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"bugs": "https://github.com/decentraland/js-sdk-toolchain/issues",
77
"dependencies": {
88
"@actions/core": "^1.10.0",
9-
"@dcl/protocol": "1.0.0-21519717333.commit-3b5ca01",
9+
"@dcl/protocol": "https://sdk-team-cdn.decentraland.org/@dcl/protocol/branch//dcl-protocol-1.0.0-21861797384.commit-2319ba7.tgz",
1010
"@dcl/quickjs-emscripten": "^0.21.0-3680274614.commit-1808aa1",
1111
"@dcl/ts-proto": "1.153.0",
1212
"@types/fs-extra": "^9.0.12",
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { Engine, components } from '../../../packages/@dcl/ecs/src'
2+
import { testComponentSerialization } from './assertion'
3+
4+
describe('Generated PhysicsImpulse ProtoBuf', () => {
5+
it('should serialize/deserialize PhysicsImpulse', () => {
6+
const newEngine = Engine()
7+
const PhysicsImpulse = components.PhysicsImpulse(newEngine)
8+
9+
testComponentSerialization(PhysicsImpulse, {
10+
direction: { x: 1.5, y: 10.0, z: -3.2 },
11+
timestamp: 42
12+
})
13+
})
14+
})

0 commit comments

Comments
 (0)