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) • 586 B
JavaScript
var GameObjectCreator = require('../../../src/gameobjects/GameObjectCreator');
describe('NineSliceCreator', function ()
{
it('should be importable without errors', function ()
{
expect(function ()
{
require('../../../src/gameobjects/nineslice/NineSliceCreator');
}).not.toThrow();
});
it('should register the nineslice creator on GameObjectCreator', function ()
{
require('../../../src/gameobjects/nineslice/NineSliceCreator');
expect(typeof GameObjectCreator.prototype.nineslice).toBe('function');
});
});