mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-21 09:02:47 +02:00
[Test] Fix mock text to make it compatible with method chaining (#5884)
This commit is contained in:
parent
d8c00616fc
commit
86fa3198fd
@ -159,8 +159,8 @@ export default class MockText implements MockGameObject {
|
||||
// return this.phaserText.addedToScene();
|
||||
}
|
||||
|
||||
setVisible(_visible) {
|
||||
// return this.phaserText.setVisible(visible);
|
||||
setVisible(_visible): this {
|
||||
return this;
|
||||
}
|
||||
|
||||
setY(_y): this {
|
||||
@ -209,9 +209,10 @@ export default class MockText implements MockGameObject {
|
||||
return this;
|
||||
}
|
||||
|
||||
setWordWrapWidth(width) {
|
||||
setWordWrapWidth(width): this {
|
||||
// Sets the width (in pixels) to use for wrapping lines.
|
||||
this.wordWrapWidth = width;
|
||||
return this;
|
||||
}
|
||||
|
||||
setFontSize(_fontSize): this {
|
||||
@ -351,5 +352,6 @@ export default class MockText implements MockGameObject {
|
||||
return this.runWordWrap(this.text).split("\n");
|
||||
}
|
||||
|
||||
// biome-ignore lint/complexity/noBannedTypes: This matches the signature of the class this mocks
|
||||
on(_event: string | symbol, _fn: Function, _context?: any) {}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user