Newer
Older
pixi.js / packages / mixin-cache-as-bitmap / test / index.js
@Matt Karl Matt Karl on 31 Oct 2017 527 bytes Next Restructure for v5 (#4387)
const { DisplayObject } = require('@pixi/display');

require('../');

describe('PIXI.DisplayObject#cacheAsBitmap', function ()
{
    it('should contain property', function ()
    {
        const obj = new DisplayObject();

        expect(obj.cacheAsBitmap).to.be.not.undefined;
        expect(obj.cacheAsBitmap).to.be.boolean;
        expect(obj.cacheAsBitmap).to.be.false;
    });

    it('should enable cacheAsBitmap', function ()
    {
        const obj = new DisplayObject();

        obj.cacheAsBitmap = true;
    });
});