Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sebavan committed Oct 27, 2021
1 parent b2721bc commit 18bb86e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/unit/babylon/src/Meshes/babylon.geometry.tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,11 @@ describe('Babylon Geometry', () => {
geometry.setIndices([0, 1, 2, 3], 4);

var result = geometry.getVerticesData(BABYLON.VertexBuffer.ColorKind);
expect(result).to.have.ordered.members([0.4, 0.4, 0.4, 0.6, 0.6, 0.6, 0.8, 0.8, 0.8, 1, 1, 1]);
expect(result).to.be.a('float32array');
var expectedResult = new Float32Array([0.4, 0.4, 0.4, 0.6, 0.6, 0.6, 0.8, 0.8, 0.8, 1, 1, 1]);
for (let i = 0; i < data.length; i++) {
expect(result[i]).to.be.equal(expectedResult[i]);
}
});
});
});

0 comments on commit 18bb86e

Please sign in to comment.