Skip to content

Commit cb23d05

Browse files
committed
fix: add customShapes in Graphics.js and fix unit test error
1 parent 6d9fc0d commit cb23d05

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/unit/core/p5.Graphics.js

+8
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,14 @@ suite('Graphics', function() {
117117
});
118118
});
119119

120+
suite('p5.Graphics.prototype.splineVertex', function() {
121+
test('should be a function in graphics', function() {
122+
let g = myp5.createGraphics(10, 10);
123+
assert.ok(g.splineVertex);
124+
assert.typeOf(g.splineVertex, 'function');
125+
});
126+
});
127+
120128
suite('p5.Graphics.resizeCanvas', function() {
121129
let glStub;
122130

0 commit comments

Comments
 (0)