提交 363a0774 编写于 作者: Q qigongming

master分支开发修改返回值,xts用例修改

Signed-off-by: Nqigongming <qigongming@huawei.com>
Change-Id: Ic28677056471e024d85cf5ce8ac0e732ea5424a4
上级 09f1f272
......@@ -707,10 +707,11 @@ describe('bundlestate', function() {
console.info('isIdleState_052 start');
bundlestate.isIdleState(bundleName, (err, res) => {
if(err) {
console.info('isIdleState_052 callback fail result = ' + err);
console.info('isIdleState_052 callback fail result = ' + JSON.stringify(err.code));
expect(err.code).assertLarger(0);
} else {
console.info('isIdleState_052 callback success result = ' + JSON.stringify(res));
expect(res).assertTrue();
expect(res).assertFalse();
}
done();
});
......@@ -752,7 +753,7 @@ describe('bundlestate', function() {
console.info('isIdleState_054 start');
bundlestate.isIdleState(bundleName).then((data) => {
console.info('isIdleState_054 promise success result = ' + JSON.stringify(data));
expect(data).assertTrue();
expect(data).assertFalse();
done();
}).catch((err) => {
console.info('isIdleState_054 promise fail result = ' + JSON.stringify(err.code));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册