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