diff --git a/ability/ability_runtime/want/actsgetwantalltest/src/main/js/test/ActsGetWantAllTest.js b/ability/ability_runtime/want/actsgetwantalltest/src/main/js/test/ActsGetWantAllTest.js index aec8fdb2069d695a94360522ece2a528d0bd3905..76a50eb19ab85b5c7ee45ac690ef99889b2d4f72 100644 --- a/ability/ability_runtime/want/actsgetwantalltest/src/main/js/test/ActsGetWantAllTest.js +++ b/ability/ability_runtime/want/actsgetwantalltest/src/main/js/test/ActsGetWantAllTest.js @@ -44,6 +44,7 @@ describe('ActsGetWantTest', function () { mykey3: "str", mykey4: [false, true, false], mykey5: ["str", "STR", "helloopenharmony"], + mykey6: {"subKey1":"STRING", "subKey2":10, "subKey3":true}, }, } }).then((data) => { @@ -64,6 +65,9 @@ describe('ActsGetWantTest', function () { expect(data.want.parameters.mykey5[0]).assertEqual("str"); expect(data.want.parameters.mykey5[1]).assertEqual("STR"); expect(data.want.parameters.mykey5[2]).assertEqual("helloopenharmony"); + expect(data.want.parameters.mykey6["subKey1"]).assertEqual("STRING"); + expect(data.want.parameters.mykey6["subKey2"]).assertEqual(10); + expect(data.want.parameters.mykey6["subKey3"]).assertEqual(true); setTimeout(()=>{ done(); }, TIMEOUT_NUMBER);