JAVASCRIPT 30
Ellipse.js Guest on 20th April 2021 11:28:31 PM
  1. describe('pixi/core/Ellipse', function () {
  2.     'use strict';
  3.  
  4.     var expect = chai.expect;
  5.     var Ellipse = PIXI.Ellipse;
  6.  
  7.     it('Module exists', function () {
  8.         expect(Ellipse).to.be.a('function');
  9.     });
  10.  
  11.     it('Confirm new instance', function () {
  12.         var obj = new Ellipse();
  13.  
  14.         expect(obj).to.be.an.instanceof(Ellipse);
  15.         expect(obj).to.respondTo('clone');
  16.         expect(obj).to.respondTo('contains');
  17.         expect(obj).to.respondTo('getBounds');
  18.  
  19.         expect(obj).to.have.property('x', 0);
  20.         expect(obj).to.have.property('y', 0);
  21.         expect(obj).to.have.property('width', 0);
  22.         expect(obj).to.have.property('height', 0);
  23.     });
  24. });

Paste-bin is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.