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