phaser
Version:
A fast, free and fun HTML5 Game Framework for Desktop and Mobile web browsers from the team at Phaser Studio Inc.
20 lines (16 loc) • 555 B
JavaScript
var GameObjectFactory = require('../../../src/gameobjects/GameObjectFactory');
describe('ShaderFactory', function ()
{
it('should be importable', function ()
{
expect(function ()
{
require('../../../src/gameobjects/shader/ShaderFactory');
}).not.toThrow();
});
it('should register a shader factory method on GameObjectFactory', function ()
{
require('../../../src/gameobjects/shader/ShaderFactory');
expect(typeof GameObjectFactory.prototype.shader).toBe('function');
});
});