提交 7bd81a9c 编写于 作者: T toutes

fix: Solve the problem of XTS display use case failure

Signed-off-by: Ntoutes <zhaoruiyuan2@huawei.com>
上级 63b288d5
...@@ -235,7 +235,7 @@ describe('appInfoTest', function () { ...@@ -235,7 +235,7 @@ describe('appInfoTest', function () {
brightness.getMode({ brightness.getMode({
success: (data) => { success: (data) => {
execSucc = true; execSucc = true;
expect(data.mode === !modeVal).assertTrue() ; expect(data.mode === (modeVal ? 0 : 1)).assertTrue();
}, },
fail: (data, code) => { fail: (data, code) => {
console.log("get_mode_success, data: " + data + ", code: " + code); console.log("get_mode_success, data: " + data + ", code: " + code);
...@@ -295,7 +295,7 @@ describe('appInfoTest', function () { ...@@ -295,7 +295,7 @@ describe('appInfoTest', function () {
brightness.getMode({ brightness.getMode({
success: (data) => { success: (data) => {
console.log("set_mode_success, data: " + data.mode); console.log("set_mode_success, data: " + data.mode);
expect(data.mode === !modeVal).assertTrue(); expect(data.mode === (modeVal ? 0 : 1)).assertTrue();
} }
}); });
}, },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册