mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-09-23 23:13:42 +02:00
* Made default boilerplate show off some test utils * Moved all the setup files into their own folder * fixed relative path bug * Update i18n.ts Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
18 lines
356 B
TypeScript
18 lines
356 B
TypeScript
class FontFaceMock {
|
|
family: string;
|
|
source: string;
|
|
descriptors: any;
|
|
|
|
constructor(family: string, source: string, descriptors?: any) {
|
|
this.family = family;
|
|
this.source = source;
|
|
this.descriptors = descriptors;
|
|
}
|
|
|
|
load(): Promise<FontFaceMock> {
|
|
return Promise.resolve(this);
|
|
}
|
|
}
|
|
|
|
globalThis.FontFace = FontFaceMock as any;
|