Add tests for load costume error handling. Fix issue where asset data was not getting saved out properly.

This commit is contained in:
Karishma Chadha 2022-05-13 18:34:34 -04:00
parent a8618b378f
commit 70a78cf7db
15 changed files with 418 additions and 13 deletions
test/fixtures

View file

@ -4,6 +4,19 @@ const FakeRenderer = function () {
this.y = 0;
this.order = 0;
this.spriteCount = 5;
this._nextSkinId = -1;
};
FakeRenderer.prototype.createSVGSkin = function () {
return this._nextSkinId++;
};
FakeRenderer.prototype.getSkinSize = function (d) { // eslint-disable-line no-unused-vars
return [0, 0];
};
FakeRenderer.prototype.getSkinRotationCenter = function (d) { // eslint-disable-line no-unused-vars
return [0, 0];
};
FakeRenderer.prototype.createDrawable = function () {