Skip to content

Commit

Permalink
test(MeshRenderer): update unit test case of
Browse files Browse the repository at this point in the history
  • Loading branch information
jtabibito committed Aug 30, 2023
1 parent 1e4d1b4 commit f50e171
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/src/core/MeshRenderer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ describe("MeshRenderer", async function () {
// Test that repeated assignment works correctly.
mr.enableVertexColor = true;
expect(mr.enableVertexColor).to.be.true;

// Test that set inverse value works correctly.
const inverseValue = !mr.enableVertexColor;
mr.enableVertexColor = inverseValue;
expect(mr.enableVertexColor).to.be.equal(inverseValue);
});

it("bounds", () => {
Expand Down

0 comments on commit f50e171

Please sign in to comment.