js: fixing errors found by testing
authorMaximilian Krambach <maximilian.krambach@intevation.de>
Fri, 4 May 2018 10:56:59 +0000 (12:56 +0200)
committerMaximilian Krambach <maximilian.krambach@intevation.de>
Fri, 4 May 2018 10:56:59 +0000 (12:56 +0200)
commitcf075846fb48c8d71937100d2c45069d37d54a38
tree01b25208634229a48d2ec490324d11e7b6af534d
parentc755287ba845c4cbbf1d50e5aafecb2e687c7ac9
js: fixing errors found by testing

--

* Key.js: Error code for wrong parameter in createKey should be
  "PARAM_WRONG"

* Helpers.js: The property openpgpjs-like Objects were checked for in
  toKeyIdArray was not defined.

* src/permittedOperations.js: updated more expectations and assumptions
  for the native API
lang/js/src/Helpers.js
lang/js/src/Key.js
lang/js/src/permittedOperations.js
lang/js/unittests.js