From ef34482fb408de73af6c31d48faf526dc60b6d7f Mon Sep 17 00:00:00 2001 From: wuxiaodan Date: Fri, 3 Feb 2023 06:59:57 +0000 Subject: [PATCH] update FieldNodeJsunit.test.js. Signed-off-by: wuxiaodan --- .../src/main/js/default/test/FieldNodeJsunit.test.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/distributeddatamgr/distributeddatamgrjstest/hap/src/main/js/default/test/FieldNodeJsunit.test.js b/distributeddatamgr/distributeddatamgrjstest/hap/src/main/js/default/test/FieldNodeJsunit.test.js index 3f4b1a17a..bc614081a 100644 --- a/distributeddatamgr/distributeddatamgrjstest/hap/src/main/js/default/test/FieldNodeJsunit.test.js +++ b/distributeddatamgr/distributeddatamgrjstest/hap/src/main/js/default/test/FieldNodeJsunit.test.js @@ -170,7 +170,7 @@ describe('FieldNodeTest', function() { let node = new ddm.FieldNode('first'); node.type = ddm.ValueType.STRING; console.info('testtype001 type = ' + node.type); - expect(node.type === ddm.ValueType.STRING).assertTrue() + expect(node.type === ddm.ValueType.STRING).assertTrue(); } catch (e) { console.log("testtype001 fail on exception: " + e); expect(null).assertFail(); @@ -188,7 +188,7 @@ describe('FieldNodeTest', function() { let node = new ddm.FieldNode('first'); node.type = ddm.ValueType.INTEGER; console.info('testtype002 type = ' + node.type); - expect(node.type === ddm.ValueType.INTEGER).assertTrue() + expect(node.type === ddm.ValueType.INTEGER).assertTrue(); } catch (e) { console.log("testtype002 fail on exception: " + e); expect(null).assertFail(); @@ -206,7 +206,7 @@ describe('FieldNodeTest', function() { let node = new ddm.FieldNode('first'); node.type = ddm.ValueType.FLOAT; console.info('testtype003 type = ' + node.type); - expect(node.type === ddm.ValueType.FLOAT).assertTrue() + expect(node.type === ddm.ValueType.FLOAT).assertTrue(); } catch (e) { console.log("testtype003 fail on exception: " + e); expect(null).assertFail(); @@ -224,7 +224,7 @@ describe('FieldNodeTest', function() { let node = new ddm.FieldNode('first'); node.type = ddm.ValueType.BYTE_ARRAY; console.info('testtype004 type = ' + node.type); - expect(node.type === ddm.ValueType.BYTE_ARRAY).assertTrue() + expect(node.type === ddm.ValueType.BYTE_ARRAY).assertTrue(); } catch (e) { console.log("testtype004 fail on exception: " + e); expect(null).assertFail(); @@ -242,7 +242,7 @@ describe('FieldNodeTest', function() { let node = new ddm.FieldNode('first'); node.type = ddm.ValueType.BOOLEAN; console.info('testtype005 type = ' + node.type); - expect(node.type === ddm.ValueType.BOOLEAN).assertTrue() + expect(node.type === ddm.ValueType.BOOLEAN).assertTrue(); } catch (e) { console.log("testtype005 fail on exception: " + e); expect(null).assertFail(); @@ -260,7 +260,7 @@ describe('FieldNodeTest', function() { let node = new ddm.FieldNode('first'); node.type = ddm.ValueType.DOUBLE; console.info('testtype006 type = ' + node.type); - expect(node.type === ddm.ValueType.DOUBLE).assertTrue() + expect(node.type === ddm.ValueType.DOUBLE).assertTrue(); } catch (e) { console.log("testtype006 fail on exception: " + e); expect(null).assertFail(); -- GitLab