Newer
Older
pixi.js / bundles / pixi.js-legacy / test / index.js
@Matt Karl Matt Karl on 19 Nov 2017 751 bytes Decouple Canvas Functionality (v5) (#4429)
/* eslint-disable global-require */
const PIXI = require('../');

describe('PIXI', function ()
{
    it('should exist as a global object', function ()
    {
        expect(window.PIXI).to.not.be.undefined;
        expect(PIXI).to.not.be.undefined;
        expect(PIXI.interaction).to.not.be.undefined;
        expect(PIXI.settings).to.not.be.undefined;
        expect(PIXI.loaders).to.not.be.undefined;
        expect(PIXI.extract).to.not.be.undefined;
        expect(PIXI.prepare).to.not.be.undefined;
        expect(PIXI.utils).to.not.be.undefined;
    });

    it('should contain deprecations on window, not import', function ()
    {
        expect(PIXI.extras).to.be.undefined;
        expect(window.PIXI.extras).to.not.be.undefined;
    });
});