diff --git a/test/core/Graphics.js b/test/core/Graphics.js new file mode 100644 index 0000000..5058fe5 --- /dev/null +++ b/test/core/Graphics.js @@ -0,0 +1,18 @@ +'use strict'; + +describe('PIXI.Graphics', () => +{ + describe('constructor', () => + { + it('should set defaults', () => + { + const graphics = new PIXI.Graphics(); + + expect(graphics.fillAlpha).to.be.equals(1); + expect(graphics.lineWidth).to.be.equals(0); + expect(graphics.lineColor).to.be.equals(0); + expect(graphics.tint).to.be.equals(0xFFFFFF); + expect(graphics.blendMode).to.be.equals(PIXI.BLEND_MODES.NORMAL); + }); + }); +}); diff --git a/test/core/Graphics.js b/test/core/Graphics.js new file mode 100644 index 0000000..5058fe5 --- /dev/null +++ b/test/core/Graphics.js @@ -0,0 +1,18 @@ +'use strict'; + +describe('PIXI.Graphics', () => +{ + describe('constructor', () => + { + it('should set defaults', () => + { + const graphics = new PIXI.Graphics(); + + expect(graphics.fillAlpha).to.be.equals(1); + expect(graphics.lineWidth).to.be.equals(0); + expect(graphics.lineColor).to.be.equals(0); + expect(graphics.tint).to.be.equals(0xFFFFFF); + expect(graphics.blendMode).to.be.equals(PIXI.BLEND_MODES.NORMAL); + }); + }); +}); diff --git a/test/core/index.js b/test/core/index.js index e519a43..cba5040 100755 --- a/test/core/index.js +++ b/test/core/index.js @@ -16,3 +16,4 @@ require('./Matrix'); require('./Rectangle'); require('./Circle'); +require('./Graphics');