提交 855f0004 编写于 作者: J jianghuanhuan

observer用例优化

Signed-off-by: Njianghuanhuan <jianghuanhuan@huawei.com>
上级 3c54b95c
...@@ -321,8 +321,8 @@ export default function ObserverJsunit() { ...@@ -321,8 +321,8 @@ export default function ObserverJsunit() {
it('Telephony_observer_observer_off_simStateChange_0100', 0, async function (done) { it('Telephony_observer_observer_off_simStateChange_0100', 0, async function (done) {
console.log("************* Telephony_observer_observer_off_simStateChange_0100 Test start *************"); console.log("************* Telephony_observer_observer_off_simStateChange_0100 Test start *************");
try { try {
let callback = data => { let callback = SimStateData => {
console.log("on simStateChange, data:" + JSON.stringify(data)); console.log("on simStateChange, data:" + JSON.stringify(SimStateData));
expect(typeof SimStateData.reason === undefined).assertFalse(); expect(typeof SimStateData.reason === undefined).assertFalse();
expect(typeof SimStateData.state === undefined).assertFalse(); expect(typeof SimStateData.state === undefined).assertFalse();
expect(typeof SimStateData.type === undefined).assertFalse(); expect(typeof SimStateData.type === undefined).assertFalse();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册