Browse Source

Fix get_version_feature_spec.js and partly fix token_reload.js. 37 pass, 18 fail. Number of tests: 55.

1.1.101
Jorg Knobloch 1 year ago
parent
commit
63ca6c5025
2 changed files with 5 additions and 5 deletions
  1. +1
    -1
      tests/features/get_version_feature_spec.js
  2. +4
    -4
      tests/features/token_reload.js

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

@ -22,7 +22,7 @@ describe('pEp Get Version Feature', () => {
let result = "initial value";
before(() => {
queue.respondWith({"jsonrpc":"2.0","id":1,"result":{"outParams":[],"return":{"major":0,"minor":17,"patch":0,"api_version":"0.17.0","name":"(40) Eisenach-Ost","package_version":[null],"engine_version":"1.1.1","pep_protocol_version":"2.1"},"errorstack":["(1 elements cleared)"]}});
result = pEpController.getVersion();
result = pEpController.serverVersion();
});
it('should return a Object', () => {


+ 4
- 4
tests/features/token_reload.js View File

@ -31,7 +31,7 @@ describe('controller call', () => {
before(() => {
b1();
queue.respondWith(success);
result = controller.getVersion();
result = controller.serverVersion();
});
after(() => {
a1();
@ -51,7 +51,7 @@ describe('controller call', () => {
before(() => {
b1();
queue.respondWith(wrongToken);
result = controller.getVersion();
result = controller.serverVersion();
});
after(() => {
a1();
@ -71,7 +71,7 @@ describe('controller call', () => {
b1();
security_token = "security_token_value_2";
queue.respondWith(wrongToken);
result = controller.getVersion();
result = controller.serverVersion();
queue.respondWith(success);
});
after(() => {
@ -96,7 +96,7 @@ describe('controller call', () => {
b1();
queue.respondWith(wrongToken);
security_token = "security_token_value_2";
result = controller.getVersion();
result = controller.serverVersion();
queue.respondWith(wrongToken);
});
after(() => {


Loading…
Cancel
Save