Skip to content

Commit

Permalink
fix(vector): correct formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
MrTelanie committed May 17, 2020
1 parent 3da0f51 commit 2b3e4b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/point.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ const pointTest = (vec2, Vec2) => {
const pos = vec2(1, 1, 1);
const dir = vec2(2, 2, 2);

assert.throws(() => (pos + dir));
assert.throws(() => (pos + dir));
});
};

Expand Down
4 changes: 2 additions & 2 deletions test/vector.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ const vectorTest = (vec3, Vec3) => {
});

it("should work when calling factory via json object", () => {
const dir0 = vec3({ x:4, y: 5, z: 4.5 });
const dir0 = vec3({ x: 4, y: 5, z: 4.5 });

assert.equal(dir0.x, 4);
assert.equal(dir0.y, 5);
Expand All @@ -255,7 +255,7 @@ const vectorTest = (vec3, Vec3) => {
const pos = vec3(1, 1, 1);
const dir = vec3(2, 2, 2);

assert.throws(() => (pos + dir));
assert.throws(() => (pos + dir));
});

};
Expand Down

0 comments on commit 2b3e4b5

Please sign in to comment.