UNPKG

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