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