提交 6a57f1dc 编写于 作者: O openharmony_ci 提交者: Gitee

!1276 Update ans test js code

Merge pull request !1276 from blackleon/update_1202_master_ans
...@@ -32,8 +32,8 @@ describe('ActsAnsWantAgentOneTest', function () { ...@@ -32,8 +32,8 @@ describe('ActsAnsWantAgentOneTest', function () {
wants: [ wants: [
{ {
deviceId: "", deviceId: "",
bundleName: "com.example.WantAgentTest1", bundleName: "com.example.WantAgentTest",
abilityName: "com.example.WantAgentTest1.MainAbility", abilityName: "com.example.WantAgentTest.MainAbility",
action: "action1", action: "action1",
entities: ["entity1"], entities: ["entity1"],
type: "MIMETYPE", type: "MIMETYPE",
...@@ -73,8 +73,8 @@ describe('ActsAnsWantAgentOneTest', function () { ...@@ -73,8 +73,8 @@ describe('ActsAnsWantAgentOneTest', function () {
expect(data.finalCode).assertEqual(0); expect(data.finalCode).assertEqual(0);
expect(data.finalData).assertEqual(""); expect(data.finalData).assertEqual("");
expect(data.want.deviceId).assertEqual(""); expect(data.want.deviceId).assertEqual("");
expect(data.want.bundleName).assertEqual("com.example.WantAgentTest1"); expect(data.want.bundleName).assertEqual("com.example.WantAgentTest");
expect(data.want.abilityName).assertEqual("com.example.WantAgentTest1.MainAbility"); expect(data.want.abilityName).assertEqual("com.example.WantAgentTest.MainAbility");
expect(data.want.uri).assertEqual("key={true,true,false}"); expect(data.want.uri).assertEqual("key={true,true,false}");
expect(JSON.stringify(data.want.entities)).assertEqual(JSON.stringify(["entity1"])); expect(JSON.stringify(data.want.entities)).assertEqual(JSON.stringify(["entity1"]));
expect(data.want.action).assertEqual("action1"); expect(data.want.action).assertEqual("action1");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册