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) • 550 B
JavaScript
var GameObjectFactory = require('../../../src/gameobjects/GameObjectFactory');
describe('StampFactory', function ()
{
it('should be importable', function ()
{
expect(function ()
{
require('../../../src/gameobjects/stamp/StampFactory');
}).not.toThrow();
});
it('should register a stamp factory function on GameObjectFactory', function ()
{
require('../../../src/gameobjects/stamp/StampFactory');
expect(typeof GameObjectFactory.prototype.stamp).toBe('function');
});
});