phaser
Version:
A fast, free and fun HTML5 Game Framework for Desktop and Mobile web browsers from the team at Phaser Studio Inc.
17 lines (14 loc) • 786 B
JavaScript
var GameObjectCreator = require('../../../../src/gameobjects/GameObjectCreator');
describe('DynamicBitmapTextCreator', function ()
{
it('should be importable', function ()
{
// DynamicBitmapTextCreator registers itself onto GameObjectCreator as a side
// effect of being required. The full creator function cannot be exercised in
// a headless Node environment because DynamicBitmapText extends a chain of
// Phaser Game Objects that depend on Canvas / WebGL / DOM APIs.
// We verify only that the module loads cleanly and registers its method.
require('../../../../src/gameobjects/bitmaptext/dynamic/DynamicBitmapTextCreator');
expect(typeof GameObjectCreator.prototype.dynamicBitmapText).toBe('function');
});
});