Skip to content

Commit

Permalink
Cleanup specs
Browse files Browse the repository at this point in the history
  • Loading branch information
ggetz committed Jun 29, 2018
1 parent f2b9a18 commit 05818e2
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions specs/lib/moveTechniqueRenderStatesSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ var gltf = {

describe('updateMaterialProperties', function() {
it('sets material.doubleSided property if CULL_FACE is not enabled', function () {
var gltfWithUpdatedMaterials = moveTechniqueRenderStates(gltf);
var baseGltf = JSON.parse(JSON.stringify(gltf));
var gltfWithUpdatedMaterials = moveTechniqueRenderStates(baseGltf);
var material = gltfWithUpdatedMaterials.materials[0];
expect(material.doubleSided).toBeUndefined();

Expand Down Expand Up @@ -200,13 +201,10 @@ describe('updateMaterialProperties', function() {

it('does not set alphaMode or add EXT_blend if no blending is found in render states', function () {
var gltfWithoutBlending = JSON.parse(JSON.stringify(gltf));
delete gltfWithoutBlending.techniques.technique0.states;
gltfWithoutBlending.techniques.technique0.states = {
enable: [
WebGLConstants.DEPTH_TEST,
WebGLConstants.CULL_FACE
]
};
gltfWithoutBlending.techniques.technique0.states.enable = [
WebGLConstants.DEPTH_TEST,
WebGLConstants.CULL_FACE
];

var updatedGltf = moveTechniqueRenderStates(gltfWithoutBlending);
expect(updatedGltf.extensionsUsed).toBeUndefined();
Expand Down

0 comments on commit 05818e2

Please sign in to comment.