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": "vitest run",
|
||||||
"test:cov": "vitest run --coverage",
|
"test:cov": "vitest run --coverage",
|
||||||
"test:watch": "vitest watch --coverage",
|
"test:watch": "vitest watch --coverage",
|
||||||
|
"test:silent": "vitest run --silent",
|
||||||
"eslint": "eslint --fix .",
|
"eslint": "eslint --fix .",
|
||||||
"eslint-ci": "eslint .",
|
"eslint-ci": "eslint .",
|
||||||
"docs": "typedoc"
|
"docs": "typedoc"
|
||||||
|
|
|
@ -7,9 +7,11 @@ export default class MockText {
|
||||||
private scene;
|
private scene;
|
||||||
private textureManager;
|
private textureManager;
|
||||||
public list = [];
|
public list = [];
|
||||||
|
public style;
|
||||||
constructor(textureManager, x, y, content, styleOptions) {
|
constructor(textureManager, x, y, content, styleOptions) {
|
||||||
this.scene = textureManager.scene;
|
this.scene = textureManager.scene;
|
||||||
this.textureManager = textureManager;
|
this.textureManager = textureManager;
|
||||||
|
this.style = {};
|
||||||
// Phaser.GameObjects.TextStyle.prototype.setStyle = () => null;
|
// Phaser.GameObjects.TextStyle.prototype.setStyle = () => null;
|
||||||
// Phaser.GameObjects.Text.prototype.updateText = () => null;
|
// Phaser.GameObjects.Text.prototype.updateText = () => null;
|
||||||
// Phaser.Textures.TextureManager.prototype.addCanvas = () => {};
|
// Phaser.Textures.TextureManager.prototype.addCanvas = () => {};
|
||||||
|
|
Loading…
Reference in New Issue