From ff88d30d2f8dea41cff3e5c0d89b946021a4982f Mon Sep 17 00:00:00 2001 From: n1474335 Date: Fri, 26 Mar 2021 14:07:02 +0000 Subject: [PATCH] Tidied up CBOR operations --- src/core/operations/CBORDecode.mjs | 9 ++++----- src/core/operations/CBOREncode.mjs | 6 +++--- tests/operations/tests/CBORDecode.mjs | 3 +-- tests/operations/tests/CBOREncode.mjs | 1 - 4 files changed, 8 insertions(+), 11 deletions(-) diff --git a/src/core/operations/CBORDecode.mjs b/src/core/operations/CBORDecode.mjs index 34f1abd1..f4bda7c0 100644 --- a/src/core/operations/CBORDecode.mjs +++ b/src/core/operations/CBORDecode.mjs @@ -19,13 +19,12 @@ class CBORDecode extends Operation { super(); this.name = "CBOR Decode"; - this.module = "Default"; - this.description = "Decode Concise Binary Object Representation (CBOR) data format (RFC7049) to JSON."; - this.infoURL = "https://cbor.io"; + this.module = "Serialise"; + this.description = "Concise Binary Object Representation (CBOR) is a binary data serialization format loosely based on JSON. Like JSON it allows the transmission of data objects that contain name–value pairs, but in a more concise manner. This increases processing and transfer speeds at the cost of human readability. It is defined in IETF RFC 8949."; + this.infoURL = "https://wikipedia.org/wiki/CBOR"; this.inputType = "ArrayBuffer"; this.outputType = "JSON"; - this.args = [ - ]; + this.args = []; } /** diff --git a/src/core/operations/CBOREncode.mjs b/src/core/operations/CBOREncode.mjs index 9e92239e..c6e094a9 100644 --- a/src/core/operations/CBOREncode.mjs +++ b/src/core/operations/CBOREncode.mjs @@ -19,9 +19,9 @@ class CBOREncode extends Operation { super(); this.name = "CBOR Encode"; - this.module = "Default"; - this.description = "2"; - this.infoURL = "https://cbor.io"; + this.module = "Serialise"; + this.description = "Concise Binary Object Representation (CBOR) is a binary data serialization format loosely based on JSON. Like JSON it allows the transmission of data objects that contain name–value pairs, but in a more concise manner. This increases processing and transfer speeds at the cost of human readability. It is defined in IETF RFC 8949."; + this.infoURL = "https://wikipedia.org/wiki/CBOR"; this.inputType = "JSON"; this.outputType = "ArrayBuffer"; this.args = []; diff --git a/tests/operations/tests/CBORDecode.mjs b/tests/operations/tests/CBORDecode.mjs index 4505b59c..e3015d4e 100644 --- a/tests/operations/tests/CBORDecode.mjs +++ b/tests/operations/tests/CBORDecode.mjs @@ -1,8 +1,7 @@ /** - * From Hex Tests. + * CBOR Decode Tests * * @author Danh4 [dan.h4@ncsc.gov.uk] - * * @copyright Crown Copyright 2019 * @license Apache-2.0 */ diff --git a/tests/operations/tests/CBOREncode.mjs b/tests/operations/tests/CBOREncode.mjs index 0613bfe6..a12ba686 100644 --- a/tests/operations/tests/CBOREncode.mjs +++ b/tests/operations/tests/CBOREncode.mjs @@ -2,7 +2,6 @@ * CBOR Encode Tests. * * @author Danh4 [dan.h4@ncsc.gov.uk] - * * @copyright Crown Copyright 2019 * @license Apache-2.0 */