提交 0cdaec5b 编写于 作者: taohebin@dcloud.io's avatar taohebin@dcloud.io

test: getappbaseinfo、getsysteminfo 增加appTheme字段测试

上级 8f4d3586
......@@ -41,6 +41,9 @@ describe('ExtApi-GetAppBaseInfo', () => {
if (booleanProperties.indexOf(key) != -1) {
expect(value).not.toBeNull();
expect(typeof value).toBe('boolean');
}
if (key == "appTheme") {
expect(['light', 'dark', 'auto']).toContain(value);
}
}
});
......
......@@ -54,6 +54,9 @@ describe('ExtApi-GetSystemInfo', () => {
if (key == "osTheme") {
expect(['light', 'dark']).toContain(value);
}
if (key == "appTheme") {
expect(['light', 'dark', 'auto']).toContain(value);
}
}
});
it('Check GetSystemInfoSync required properties', async () => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册