Adjust tests to stricter error checking from commit 41e13b95.

master
Jörg Knobloch 1 year ago
parent 5496ade4ab
commit 89cf77afe1
  1. 2
      tests/features/trust_personal_key_feature_spec.js
  2. 2
      tests/unit/controller.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,
});

@ -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,
});

Loading…
Cancel
Save