Mock bitmap loading and add sb2 and sprite2 tests for a missing svg costume

This commit is contained in:
Karishma Chadha 2022-05-21 18:34:21 -04:00
parent b2bbcb897a
commit 28c6daaaf7
6 changed files with 218 additions and 0 deletions

7
test/fixtures/fake-bitmap-adapter.js vendored Normal file
View file

@ -0,0 +1,7 @@
const FakeBitmapAdapter = require('scratch-svg-renderer').BitmapAdapter;
FakeBitmapAdapter.prototype.resize = function (canvas) {
return canvas;
};
module.exports = FakeBitmapAdapter;