提交 abd01e00 编写于 作者: J jiyong 提交者: Gitee

update miscservices/TimeTest_js/src/main/js/default/test/Time.test.js.

Signed-off-by: Njiyong <jiyong@huawei.com>
上级 aba12abe
...@@ -94,12 +94,11 @@ describe('TimeTest', function() { ...@@ -94,12 +94,11 @@ describe('TimeTest', function() {
*/ */
it('systemTime_setTime_test4', 0, async function (done) { it('systemTime_setTime_test4', 0, async function (done) {
console.log("SUB_systemTime_setTime_JS_API_0400 start") console.log("SUB_systemTime_setTime_JS_API_0400 start")
expect(1).assertLarger(0)
systemTime.setTime(-1, (error, data) => { systemTime.setTime(-1, (error, data) => {
console.log("setTime ===data: " + data); console.log("setTime ===data: " + data);
console.log("setTime ===error: " + error); console.log("setTime ===error: " + error);
}).catch(error=> { }).catch(error=> {
execpt(0).assertLarger(1) expect(1).assertLarger(0)
}) })
console.log('SUB_systemTime_setTime_JS_API_0400 end'); console.log('SUB_systemTime_setTime_JS_API_0400 end');
done() done()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册