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

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

上级 8f4d3586
......@@ -42,6 +42,9 @@ describe('ExtApi-GetAppBaseInfo', () => {
expect(value).not.toBeNull();
expect(typeof value).toBe('boolean');
}
if (key == "appTheme") {
expect(['light', 'dark', 'auto']).toContain(value);
}
}
});
it('Check GetSystemInfoSync required properties', async () => {
......
......@@ -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.
先完成此消息的编辑!
想要评论请 注册