UNPKG

phaser

Version:

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

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