mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-04-29 21:13:55 +01:00
[Test] Fix annoying BBCodeText error messages in tests (#5395)
This commit is contained in:
parent
7a015e094f
commit
b1b71dbd6d
@ -15,6 +15,7 @@ import MockTextureManager from "#test/utils/mocks/mockTextureManager";
|
|||||||
import fs from "fs";
|
import fs from "fs";
|
||||||
import Phaser from "phaser";
|
import Phaser from "phaser";
|
||||||
import InputText from "phaser3-rex-plugins/plugins/inputtext";
|
import InputText from "phaser3-rex-plugins/plugins/inputtext";
|
||||||
|
import BBCodeText from "phaser3-rex-plugins/plugins/bbcodetext";
|
||||||
import { vi } from "vitest";
|
import { vi } from "vitest";
|
||||||
import { MockGameObjectCreator } from "./mocks/mockGameObjectCreator";
|
import { MockGameObjectCreator } from "./mocks/mockGameObjectCreator";
|
||||||
import InputManager = Phaser.Input.InputManager;
|
import InputManager = Phaser.Input.InputManager;
|
||||||
@ -33,7 +34,8 @@ Object.defineProperty(window, "console", {
|
|||||||
value: mockConsoleLog(false),
|
value: mockConsoleLog(false),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
BBCodeText.prototype.destroy = () => null;
|
||||||
|
BBCodeText.prototype.resize = () => null;
|
||||||
InputText.prototype.setElement = () => null;
|
InputText.prototype.setElement = () => null;
|
||||||
InputText.prototype.resize = () => null;
|
InputText.prototype.resize = () => null;
|
||||||
Phaser.GameObjects.Image = MockImage;
|
Phaser.GameObjects.Image = MockImage;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user