From 9b446ab9e0bfb80cc7a0f56015b97fa81b92b074 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=BE=E5=B3=B0=E7=9A=84=E5=A4=8F=E5=A4=A9?= Date: Wed, 10 Sep 2025 17:23:32 +0800 Subject: [PATCH] test: add unit test for translations --- test/en-US.test.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/en-US.test.js diff --git a/test/en-US.test.js b/test/en-US.test.js new file mode 100644 index 0000000..dfff5bb --- /dev/null +++ b/test/en-US.test.js @@ -0,0 +1,12 @@ +const assert = require('assert'); +const translations = require('../en-US.js'); + +describe('en-US translations', function() { + it('should have correct translation for "启动失败"', function() { + assert.strictEqual(translations['启动失败'], 'failed'); + }); + + it('should have correct translation for "系统提示"', function() { + assert.strictEqual(translations['系统提示'], 'System infomation'); + }); +});