I want to make several unit tests that test my loading functionality. That means i have to run Phaser.Cache.destroy() just so I make sure the assets were not loaded by the previous test. The problem is destroy() makes the cache null which is not what I want. I just want to clear the data it holds.
I even tried this:
game.cache = new Phaser.Cache(game);
But it doesn't seem to be working.
What should I do in this case?