test(current-language-util): add actual test

This commit is contained in:
2026-06-03 17:35:56 +02:00
committed by Gitea
parent 2117c28606
commit 352bd5baf5
+4 -1
View File
@@ -14,7 +14,8 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
import { test } from 'vitest'; import { expect, test } from 'vitest';
import getCurrentLanguage from '../currentLanguage';
test.for([ test.for([
['en', 'en'], ['en', 'en'],
@@ -43,4 +44,6 @@ test.for([
value: language, value: language,
configurable: true configurable: true
}); });
expect(getCurrentLanguage()).toBe(language)
}); });