UNPKG

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) 481 B
var GameObjectCreator = require('../../../src/gameobjects/GameObjectCreator'); describe('ShaderCreator', function () { it('should be importable', function () { require('../../../src/gameobjects/shader/ShaderCreator'); }); it('should register a shader factory on GameObjectCreator', function () { require('../../../src/gameobjects/shader/ShaderCreator'); expect(typeof GameObjectCreator.prototype.shader).toBe('function'); }); });