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 (13 loc) • 502 B
JavaScript
var GameObjectFactory = require('../../../src/gameobjects/GameObjectFactory');
describe('GraphicsFactory', function ()
{
it('should be importable', function ()
{
require('../../../src/gameobjects/graphics/GraphicsFactory');
});
it('should register a graphics factory method on GameObjectFactory', function ()
{
require('../../../src/gameobjects/graphics/GraphicsFactory');
expect(typeof GameObjectFactory.prototype.graphics).toBe('function');
});
});