Skip to content

Commit 9b446ab

Browse files
committed
test: add unit test for translations
1 parent e328fcc commit 9b446ab

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/en-US.test.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
const assert = require('assert');
2+
const translations = require('../en-US.js');
3+
4+
describe('en-US translations', function() {
5+
it('should have correct translation for "启动失败"', function() {
6+
assert.strictEqual(translations['启动失败'], 'failed');
7+
});
8+
9+
it('should have correct translation for "系统提示"', function() {
10+
assert.strictEqual(translations['系统提示'], 'System infomation');
11+
});
12+
});

0 commit comments

Comments
 (0)