UNPKG

phaser

Version:

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

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