| undefined,
- TranslatedString,
- ];
+ type TestCase = [string, TranslationKey, IVariables, Tags | undefined, TranslatedString];
const testCasesEn: TestCase[] = [
// description of the test case, translationString, variables, tags, expected result
["translates a basic string", basicString, {}, undefined, "Rooms"],
diff --git a/test/modules/ProxiedModuleApi-test.tsx b/test/modules/ProxiedModuleApi-test.tsx
index bec6215232d..1e98e69508d 100644
--- a/test/modules/ProxiedModuleApi-test.tsx
+++ b/test/modules/ProxiedModuleApi-test.tsx
@@ -118,6 +118,9 @@ describe("ProxiedApiModule", () => {
describe("openDialog", () => {
it("should open dialog with a custom title and default options", async () => {
class MyDialogContent extends DialogContent {
+ public constructor(props: DialogProps) {
+ super(props);
+ }
trySubmit = async () => ({ result: true });
render = () => This is my example content.
;
}
@@ -147,6 +150,9 @@ describe("ProxiedApiModule", () => {
it("should open dialog with custom options", async () => {
class MyDialogContent extends DialogContent {
+ public constructor(props: DialogProps) {
+ super(props);
+ }
trySubmit = async () => ({ result: true });
render = () => This is my example content.
;
}
@@ -178,6 +184,9 @@ describe("ProxiedApiModule", () => {
it("should update the options from the opened dialog", async () => {
class MyDialogContent extends DialogContent {
+ public constructor(props: DialogProps) {
+ super(props);
+ }
trySubmit = async () => ({ result: true });
render = () => {
const onClick = () => {
@@ -231,6 +240,9 @@ describe("ProxiedApiModule", () => {
it("should cancel the dialog from within the dialog", async () => {
class MyDialogContent extends DialogContent {
+ public constructor(props: DialogProps) {
+ super(props);
+ }
trySubmit = async () => ({ result: true });
render = () => (