UNPKG

phaser

Version:

A fast, free and fun HTML5 Game Framework for Desktop and Mobile web browsers from the team at Phaser Studio Inc.

32 lines (24 loc) 808 B
var ContainerRender = require('../../../src/gameobjects/container/ContainerRender'); describe('ContainerRender', function () { it('should be importable', function () { expect(ContainerRender).toBeDefined(); }); it('should export a renderWebGL property', function () { expect(ContainerRender).toHaveProperty('renderWebGL'); }); it('should export a renderCanvas property', function () { expect(ContainerRender).toHaveProperty('renderCanvas'); }); it('should export renderWebGL as a function', function () { expect(typeof ContainerRender.renderWebGL).toBe('function'); }); it('should export renderCanvas as a function', function () { expect(typeof ContainerRender.renderCanvas).toBe('function'); }); });