diff --git a/test/core/Graphics.js b/test/core/Graphics.js index 2a64946..98c7584 100644 --- a/test/core/Graphics.js +++ b/test/core/Graphics.js @@ -127,6 +127,16 @@ expect(graphics.containsPoint(point)).to.be.false; }); + + it('should return false when no fill', function () + { + const point = new PIXI.Point(1, 1); + const graphics = new PIXI.Graphics(); + + graphics.drawRect(0, 0, 10, 10); + + expect(graphics.containsPoint(point)).to.be.false; + }); }); describe('arc', function ()