mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-25 16:26:25 +00:00
added silent option to run tests and added a missing properties in the MockText (#1967)
This commit is contained in:
parent
c301a54039
commit
dd40c8caa2
@ -11,6 +11,7 @@
|
||||
"test": "vitest run",
|
||||
"test:cov": "vitest run --coverage",
|
||||
"test:watch": "vitest watch --coverage",
|
||||
"test:silent": "vitest run --silent",
|
||||
"eslint": "eslint --fix .",
|
||||
"eslint-ci": "eslint .",
|
||||
"docs": "typedoc"
|
||||
|
@ -7,9 +7,11 @@ export default class MockText {
|
||||
private scene;
|
||||
private textureManager;
|
||||
public list = [];
|
||||
public style;
|
||||
constructor(textureManager, x, y, content, styleOptions) {
|
||||
this.scene = textureManager.scene;
|
||||
this.textureManager = textureManager;
|
||||
this.style = {};
|
||||
// Phaser.GameObjects.TextStyle.prototype.setStyle = () => null;
|
||||
// Phaser.GameObjects.Text.prototype.updateText = () => null;
|
||||
// Phaser.Textures.TextureManager.prototype.addCanvas = () => {};
|
||||
|
Loading…
Reference in New Issue
Block a user