UNPKG

phaser

Version:

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

28 lines (23 loc) 764 B
var IsoBoxRender = require('../../../../src/gameobjects/shape/isobox/IsoBoxRender'); describe('IsoBoxRender', function () { it('should be importable', function () { expect(IsoBoxRender).toBeDefined(); }); it('should export a renderWebGL function', function () { expect(typeof IsoBoxRender.renderWebGL).toBe('function'); }); it('should export a renderCanvas function', function () { expect(typeof IsoBoxRender.renderCanvas).toBe('function'); }); it('should export exactly two properties', function () { var keys = Object.keys(IsoBoxRender); expect(keys.length).toBe(2); expect(keys).toContain('renderWebGL'); expect(keys).toContain('renderCanvas'); }); });