Skip to content

Commit

Permalink
Add linked collection test
Browse files Browse the repository at this point in the history
  • Loading branch information
julienduroure committed Aug 5, 2022
1 parent f4152d5 commit a396dc7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 0 deletions.
Binary file added tests/scenes/21_scene.blend
Binary file not shown.
Binary file added tests/scenes/A.blend
Binary file not shown.
Binary file added tests/scenes/B.blend
Binary file not shown.
Binary file added tests/scenes/C.blend
Binary file not shown.
9 changes: 9 additions & 0 deletions tests/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -946,6 +946,15 @@ describe('Exporter', function() {

});

it('exports Collections', function() {
let gltfPath = path.resolve(outDirPath, '21_scene.gltf');
const asset = JSON.parse(fs.readFileSync(gltfPath));

assert.strictEqual(asset.nodes.length, 47);
assert.strictEqual(asset.scenes[0].nodes.length, 8);
assert.strictEqual(asset.meshes.length, 6);
});

});
});
});
Expand Down

0 comments on commit a396dc7

Please sign in to comment.