From 89cf77afe111ec523621afb777a8cde55a03b91c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Knobloch?= Date: Tue, 15 Jun 2021 13:23:38 +0200 Subject: [PATCH] Adjust tests to stricter error checking from commit 41e13b95. --- tests/features/trust_personal_key_feature_spec.js | 2 +- tests/unit/controller.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/features/trust_personal_key_feature_spec.js b/tests/features/trust_personal_key_feature_spec.js index c205eaf..214083b 100644 --- a/tests/features/trust_personal_key_feature_spec.js +++ b/tests/features/trust_personal_key_feature_spec.js @@ -28,7 +28,7 @@ describe("pEp Trust Personal Key Feature", () => { let testId = "test_user_id"; before(() => { - queue.respondWith({ jsonrpc: "2.0", id: 1, result: { outParams: [], return: { status: 518, hex: "0x206 \"PEP_KEY_UNSUITABLE\"" }, errorstack: ["(1 elements cleared)"] } }); + queue.respondWith({ jsonrpc: "2.0", id: 1, result: { outParams: [], return: { status: 0, hex: "0x206 \"PEP_STATUS_OK\"" }, errorstack: ["(1 elements cleared)"] } }); result = pEpController.trust_personal_key({ address: testMail, user_id: testId, username: testName, fpr: testFp, }); diff --git a/tests/unit/controller.js b/tests/unit/controller.js index 1d9c2b7..c3264b8 100644 --- a/tests/unit/controller.js +++ b/tests/unit/controller.js @@ -214,7 +214,7 @@ describe("controller calls", () => { }); }); it("trust personal key", () => { - queue.respondWith({ jsonrpc: "2.0", id: 1, result: { outParams: [], return: { status: 518, hex: "0x206 \"PEP_KEY_UNSUITABLE\"" }, errorstack: ["(1 elements cleared)"] } }); + queue.respondWith({ jsonrpc: "2.0", id: 1, result: { outParams: [], return: { status: 0, hex: "0x206 \"PEP_STATUS_OK\"" }, errorstack: ["(1 elements cleared)"] } }); result = controller.trust_personal_key({ address: testMail, user_id: testId, username: testName, fpr: testFp, });