Browse Source

Adjust tests to stricter error checking from commit 41e13b95.

master
Jörg Knobloch 7 months ago
parent
commit
89cf77afe1
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      tests/features/trust_personal_key_feature_spec.js
  2. +1
    -1
      tests/unit/controller.js

+ 1
- 1
tests/features/trust_personal_key_feature_spec.js View File

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


+ 1
- 1
tests/unit/controller.js View File

@ -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