Parcourir la source

Tests: Fix unit test for Object3D.toJSON()

Mugen87 il y a 7 ans
Parent
commit
0d19af3235
1 fichiers modifiés avec 9 ajouts et 0 suppressions
  1. 9 0
      test/unit/src/core/Object3D.tests.js

+ 9 - 0
test/unit/src/core/Object3D.tests.js

@@ -512,16 +512,25 @@ export default QUnit.module( 'Core', () => {
 					"receiveShadow": true,
 					"visible": false,
 					"userData": { "foo": "bar" },
+					"layers": {
+		      	"mask": 1
+			    },
 					"matrix": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ],
 					"children": [
 						{
 							"uuid": "5D4E9AE8-DA61-4912-A575-71A5BE3D72CD",
 							"type": "Object3D",
+							"layers": {
+								"mask": 1
+							},
 							"matrix": [ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 ],
 							"children": [
 								{
 									"uuid": "B43854B3-E970-4E85-BD41-AAF8D7BFA189",
 									"type": "Object3D",
+									"layers": {
+										"mask": 1
+									},
 									"matrix": [ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 ]
 								}
 							]