@@ -93,7 +93,7 @@ describe("Translator", () => {
9393 Translator . coreTranslationsFallback = coreTranslationsFallback ;
9494 } ;
9595
96- it ( "should return custom module translation" , async ( ) => {
96+ it ( "should return custom module translation" , ( ) => {
9797 const { Translator } = createTranslationTestEnvironment ( ) ;
9898 setTranslations ( Translator ) ;
9999
@@ -104,7 +104,7 @@ describe("Translator", () => {
104104 expect ( translation ) . toBe ( "Hallo fewieden" ) ;
105105 } ) ;
106106
107- it ( "should return core translation" , async ( ) => {
107+ it ( "should return core translation" , ( ) => {
108108 const { Translator } = createTranslationTestEnvironment ( ) ;
109109 setTranslations ( Translator ) ;
110110 let translation = Translator . translate ( { name : "MMM-Module" } , "FOO" ) ;
@@ -113,28 +113,28 @@ describe("Translator", () => {
113113 expect ( translation ) . toBe ( "Bar Lorem Ipsum" ) ;
114114 } ) ;
115115
116- it ( "should return custom module translation fallback" , async ( ) => {
116+ it ( "should return custom module translation fallback" , ( ) => {
117117 const { Translator } = createTranslationTestEnvironment ( ) ;
118118 setTranslations ( Translator ) ;
119119 const translation = Translator . translate ( { name : "MMM-Module" } , "A key" ) ;
120120 expect ( translation ) . toBe ( "A translation" ) ;
121121 } ) ;
122122
123- it ( "should return core translation fallback" , async ( ) => {
123+ it ( "should return core translation fallback" , ( ) => {
124124 const { Translator } = createTranslationTestEnvironment ( ) ;
125125 setTranslations ( Translator ) ;
126126 const translation = Translator . translate ( { name : "MMM-Module" } , "Fallback" ) ;
127127 expect ( translation ) . toBe ( "core fallback" ) ;
128128 } ) ;
129129
130- it ( "should return translation with placeholder for missing variables" , async ( ) => {
130+ it ( "should return translation with placeholder for missing variables" , ( ) => {
131131 const { Translator } = createTranslationTestEnvironment ( ) ;
132132 setTranslations ( Translator ) ;
133133 const translation = Translator . translate ( { name : "MMM-Module" } , "Hello {username}" ) ;
134134 expect ( translation ) . toBe ( "Hallo {username}" ) ;
135135 } ) ;
136136
137- it ( "should return key if no translation was found" , async ( ) => {
137+ it ( "should return key if no translation was found" , ( ) => {
138138 const { Translator } = createTranslationTestEnvironment ( ) ;
139139 setTranslations ( Translator ) ;
140140 const translation = Translator . translate ( { name : "MMM-Module" } , "MISSING" ) ;
0 commit comments