mirror of
https://github.com/gchq/CyberChef
synced 2024-12-28 13:33:20 +00:00
Restructured tests directory
This commit is contained in:
parent
a1b161493c
commit
c7e9115994
62 changed files with 122 additions and 135 deletions
19
Gruntfile.js
19
Gruntfile.js
|
@ -30,7 +30,7 @@ module.exports = function (grunt) {
|
||||||
["clean:node", "clean:config", "exec:generateConfig", "webpack:node", "chmod:build"]);
|
["clean:node", "clean:config", "exec:generateConfig", "webpack:node", "chmod:build"]);
|
||||||
|
|
||||||
grunt.registerTask("test",
|
grunt.registerTask("test",
|
||||||
"A task which runs all the tests in test/tests.",
|
"A task which runs all the tests in the tests directory.",
|
||||||
["exec:generateConfig", "exec:tests"]);
|
["exec:generateConfig", "exec:tests"]);
|
||||||
|
|
||||||
grunt.registerTask("docs",
|
grunt.registerTask("docs",
|
||||||
|
@ -148,7 +148,7 @@ module.exports = function (grunt) {
|
||||||
core: ["src/core/**/*.{js,mjs}", "!src/core/vendor/**/*", "!src/core/operations/legacy/**/*"],
|
core: ["src/core/**/*.{js,mjs}", "!src/core/vendor/**/*", "!src/core/operations/legacy/**/*"],
|
||||||
web: ["src/web/**/*.{js,mjs}"],
|
web: ["src/web/**/*.{js,mjs}"],
|
||||||
node: ["src/node/**/*.{js,mjs}"],
|
node: ["src/node/**/*.{js,mjs}"],
|
||||||
tests: ["test/**/*.{js,mjs}"],
|
tests: ["tests/**/*.{js,mjs}"],
|
||||||
},
|
},
|
||||||
jsdoc: {
|
jsdoc: {
|
||||||
options: {
|
options: {
|
||||||
|
@ -246,19 +246,6 @@ module.exports = function (grunt) {
|
||||||
}),
|
}),
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
tests: {
|
|
||||||
mode: "development",
|
|
||||||
target: "node",
|
|
||||||
entry: "./test/index.mjs",
|
|
||||||
externals: [NodeExternals()],
|
|
||||||
output: {
|
|
||||||
filename: "index.js",
|
|
||||||
path: __dirname + "/build/test"
|
|
||||||
},
|
|
||||||
plugins: [
|
|
||||||
new webpack.DefinePlugin(BUILD_CONSTANTS)
|
|
||||||
]
|
|
||||||
},
|
|
||||||
node: {
|
node: {
|
||||||
mode: "production",
|
mode: "production",
|
||||||
target: "node",
|
target: "node",
|
||||||
|
@ -400,7 +387,7 @@ module.exports = function (grunt) {
|
||||||
].join(";")
|
].join(";")
|
||||||
},
|
},
|
||||||
tests: {
|
tests: {
|
||||||
command: "node --experimental-modules --no-warnings --no-deprecation test/index.mjs"
|
command: "node --experimental-modules --no-warnings --no-deprecation tests/operations/index.mjs"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
@ -222,7 +222,7 @@ export default ${moduleName};
|
||||||
console.log(`\nNext steps:
|
console.log(`\nNext steps:
|
||||||
1. Add your operation to ${colors.green("src/core/config/Categories.json")}
|
1. Add your operation to ${colors.green("src/core/config/Categories.json")}
|
||||||
2. Write your operation code.
|
2. Write your operation code.
|
||||||
3. Write tests in ${colors.green("test/tests/operations/")}
|
3. Write tests in ${colors.green("tests/operations/tests/")}
|
||||||
4. Run ${colors.cyan("npm run lint")} and ${colors.cyan("npm run test")}
|
4. Run ${colors.cyan("npm run lint")} and ${colors.cyan("npm run test")}
|
||||||
5. Submit a Pull Request to get your operation added to the official CyberChef repository.`);
|
5. Submit a Pull Request to get your operation added to the official CyberChef repository.`);
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
* @copyright Crown Copyright 2017
|
* @copyright Crown Copyright 2017
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import Chef from "../src/core/Chef";
|
import Chef from "../../src/core/Chef";
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
/**
|
/**
|
|
@ -24,67 +24,67 @@ global.ENVIRONMENT_IS_WEB = function() {
|
||||||
};
|
};
|
||||||
|
|
||||||
import TestRegister from "./TestRegister";
|
import TestRegister from "./TestRegister";
|
||||||
import "./tests/operations/BCD";
|
import "./tests/BCD";
|
||||||
import "./tests/operations/BSON";
|
import "./tests/BSON";
|
||||||
import "./tests/operations/Base58";
|
import "./tests/Base58";
|
||||||
import "./tests/operations/Base64";
|
import "./tests/Base64";
|
||||||
import "./tests/operations/Base62";
|
import "./tests/Base62";
|
||||||
import "./tests/operations/BitwiseOp";
|
import "./tests/BitwiseOp";
|
||||||
import "./tests/operations/ByteRepr";
|
import "./tests/ByteRepr";
|
||||||
import "./tests/operations/CartesianProduct";
|
import "./tests/CartesianProduct";
|
||||||
import "./tests/operations/CharEnc";
|
import "./tests/CharEnc";
|
||||||
import "./tests/operations/Checksum";
|
import "./tests/Checksum";
|
||||||
import "./tests/operations/Ciphers";
|
import "./tests/Ciphers";
|
||||||
import "./tests/operations/Code";
|
import "./tests/Code";
|
||||||
import "./tests/operations/Comment";
|
import "./tests/Comment";
|
||||||
import "./tests/operations/Compress";
|
import "./tests/Compress";
|
||||||
import "./tests/operations/ConditionalJump";
|
import "./tests/ConditionalJump";
|
||||||
import "./tests/operations/Crypt";
|
import "./tests/Crypt";
|
||||||
import "./tests/operations/CSV";
|
import "./tests/CSV";
|
||||||
import "./tests/operations/DateTime";
|
import "./tests/DateTime";
|
||||||
import "./tests/operations/ExtractEmailAddresses";
|
import "./tests/ExtractEmailAddresses";
|
||||||
import "./tests/operations/Fork";
|
import "./tests/Fork";
|
||||||
import "./tests/operations/FromDecimal";
|
import "./tests/FromDecimal";
|
||||||
import "./tests/operations/FromGeohash";
|
import "./tests/FromGeohash";
|
||||||
import "./tests/operations/Hash";
|
import "./tests/Hash";
|
||||||
import "./tests/operations/HaversineDistance";
|
import "./tests/HaversineDistance";
|
||||||
import "./tests/operations/Hexdump";
|
import "./tests/Hexdump";
|
||||||
import "./tests/operations/Image";
|
import "./tests/Image";
|
||||||
import "./tests/operations/Jump";
|
import "./tests/Jump";
|
||||||
import "./tests/operations/JSONBeautify";
|
import "./tests/JSONBeautify";
|
||||||
import "./tests/operations/JSONMinify";
|
import "./tests/JSONMinify";
|
||||||
import "./tests/operations/JWTDecode";
|
import "./tests/JWTDecode";
|
||||||
import "./tests/operations/JWTSign";
|
import "./tests/JWTSign";
|
||||||
import "./tests/operations/JWTVerify";
|
import "./tests/JWTVerify";
|
||||||
import "./tests/operations/MS";
|
import "./tests/MS";
|
||||||
import "./tests/operations/Magic";
|
import "./tests/Magic";
|
||||||
import "./tests/operations/MorseCode";
|
import "./tests/MorseCode";
|
||||||
import "./tests/operations/NetBIOS";
|
import "./tests/NetBIOS";
|
||||||
import "./tests/operations/OTP";
|
import "./tests/OTP";
|
||||||
import "./tests/operations/PGP";
|
import "./tests/PGP";
|
||||||
import "./tests/operations/PHP";
|
import "./tests/PHP";
|
||||||
import "./tests/operations/ParseIPRange";
|
import "./tests/ParseIPRange";
|
||||||
import "./tests/operations/ParseQRCode";
|
import "./tests/ParseQRCode";
|
||||||
import "./tests/operations/PowerSet";
|
import "./tests/PowerSet";
|
||||||
import "./tests/operations/Regex";
|
import "./tests/Regex";
|
||||||
import "./tests/operations/Register";
|
import "./tests/Register";
|
||||||
import "./tests/operations/RemoveDiacritics";
|
import "./tests/RemoveDiacritics";
|
||||||
import "./tests/operations/Rotate";
|
import "./tests/Rotate";
|
||||||
import "./tests/operations/SeqUtils";
|
import "./tests/SeqUtils";
|
||||||
import "./tests/operations/SetDifference";
|
import "./tests/SetDifference";
|
||||||
import "./tests/operations/SetIntersection";
|
import "./tests/SetIntersection";
|
||||||
import "./tests/operations/SetUnion";
|
import "./tests/SetUnion";
|
||||||
import "./tests/operations/StrUtils";
|
import "./tests/StrUtils";
|
||||||
import "./tests/operations/SymmetricDifference";
|
import "./tests/SymmetricDifference";
|
||||||
import "./tests/operations/TextEncodingBruteForce";
|
import "./tests/TextEncodingBruteForce";
|
||||||
import "./tests/operations/ToGeohash";
|
import "./tests/ToGeohash";
|
||||||
import "./tests/operations/TranslateDateTimeFormat";
|
import "./tests/TranslateDateTimeFormat";
|
||||||
import "./tests/operations/Magic";
|
import "./tests/Magic";
|
||||||
import "./tests/operations/ParseTLV";
|
import "./tests/ParseTLV";
|
||||||
import "./tests/operations/Media";
|
import "./tests/Media";
|
||||||
|
|
||||||
// Cannot test operations that use the File type yet
|
// Cannot test operations that use the File type yet
|
||||||
//import "./tests/operations/SplitColourChannels";
|
//import "./tests/SplitColourChannels";
|
||||||
|
|
||||||
let allTestsPassing = true;
|
let allTestsPassing = true;
|
||||||
const testStatusCounts = {
|
const testStatusCounts = {
|
|
@ -5,7 +5,7 @@
|
||||||
* @copyright Crown Copyright 2017
|
* @copyright Crown Copyright 2017
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
TestRegister.addTests([
|
TestRegister.addTests([
|
||||||
{
|
{
|
|
@ -6,7 +6,7 @@
|
||||||
* @copyright Crown Copyright 2018
|
* @copyright Crown Copyright 2018
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
TestRegister.addTests([
|
TestRegister.addTests([
|
||||||
{
|
{
|
|
@ -6,7 +6,7 @@
|
||||||
* @copyright Crown Copyright 2017
|
* @copyright Crown Copyright 2017
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
TestRegister.addTests([
|
TestRegister.addTests([
|
||||||
{
|
{
|
|
@ -7,7 +7,7 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
TestRegister.addTests([
|
TestRegister.addTests([
|
||||||
{
|
{
|
|
@ -6,7 +6,7 @@
|
||||||
* @copyright Crown Copyright 2018
|
* @copyright Crown Copyright 2018
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
const ALL_BYTES = [
|
const ALL_BYTES = [
|
||||||
"\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
|
"\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
|
|
@ -5,7 +5,7 @@
|
||||||
* @copyright Crown Copyright 2017
|
* @copyright Crown Copyright 2017
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
TestRegister.addTests([
|
TestRegister.addTests([
|
||||||
{
|
{
|
|
@ -5,7 +5,7 @@
|
||||||
* @copyright Crown Copyright 2017
|
* @copyright Crown Copyright 2017
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
const ALL_BYTES = [
|
const ALL_BYTES = [
|
||||||
"\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
|
"\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
|
|
@ -6,7 +6,7 @@
|
||||||
* @copyright Crown Copyright 2018
|
* @copyright Crown Copyright 2018
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
const EXAMPLE_CSV = `A,B,C,D,E,F\r
|
const EXAMPLE_CSV = `A,B,C,D,E,F\r
|
||||||
1,2,3,4,5,6\r
|
1,2,3,4,5,6\r
|
|
@ -6,7 +6,7 @@
|
||||||
* @copyright Crown Copyright 2018
|
* @copyright Crown Copyright 2018
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
TestRegister.addTests([
|
TestRegister.addTests([
|
||||||
{
|
{
|
|
@ -5,7 +5,7 @@
|
||||||
* @copyright Crown Copyright 2017
|
* @copyright Crown Copyright 2017
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
TestRegister.addTests([
|
TestRegister.addTests([
|
||||||
{
|
{
|
|
@ -5,7 +5,7 @@
|
||||||
* @copyright Crown Copyright 2018
|
* @copyright Crown Copyright 2018
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
const BASIC_STRING = "The ships hung in the sky in much the same way that bricks don't.";
|
const BASIC_STRING = "The ships hung in the sky in much the same way that bricks don't.";
|
||||||
const UTF8_STR = "ნუ პანიკას";
|
const UTF8_STR = "ნუ პანიკას";
|
|
@ -7,7 +7,7 @@
|
||||||
* @copyright Crown Copyright 2018
|
* @copyright Crown Copyright 2018
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
|
|
||||||
TestRegister.addTests([
|
TestRegister.addTests([
|
|
@ -7,7 +7,7 @@
|
||||||
* @copyright Crown Copyright 2017
|
* @copyright Crown Copyright 2017
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
const JSON_TEST_DATA = {
|
const JSON_TEST_DATA = {
|
||||||
"store": {
|
"store": {
|
|
@ -6,7 +6,7 @@
|
||||||
* @copyright Crown Copyright 2018
|
* @copyright Crown Copyright 2018
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
const ALL_BYTES = [
|
const ALL_BYTES = [
|
||||||
"\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
|
"\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
|
|
@ -5,7 +5,7 @@
|
||||||
* @copyright Crown Copyright 2017
|
* @copyright Crown Copyright 2017
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
TestRegister.addTests([
|
TestRegister.addTests([
|
||||||
{
|
{
|
|
@ -6,7 +6,7 @@
|
||||||
* @copyright Crown Copyright 2018
|
* @copyright Crown Copyright 2018
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
TestRegister.addTests([
|
TestRegister.addTests([
|
||||||
{
|
{
|
|
@ -6,7 +6,7 @@
|
||||||
* @copyright Crown Copyright 2018
|
* @copyright Crown Copyright 2018
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
TestRegister.addTests([
|
TestRegister.addTests([
|
||||||
/**
|
/**
|
|
@ -6,7 +6,7 @@
|
||||||
* @copyright Crown Copyright 2017
|
* @copyright Crown Copyright 2017
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
TestRegister.addTests([
|
TestRegister.addTests([
|
||||||
{
|
{
|
|
@ -5,7 +5,7 @@
|
||||||
* @copyright Crown Copyright 2017
|
* @copyright Crown Copyright 2017
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
TestRegister.addTests([
|
TestRegister.addTests([
|
||||||
{
|
{
|
|
@ -6,7 +6,7 @@
|
||||||
* @copyright Crown Copyright 2018
|
* @copyright Crown Copyright 2018
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
TestRegister.addTests([
|
TestRegister.addTests([
|
||||||
{
|
{
|
|
@ -5,7 +5,7 @@
|
||||||
* @copyright Crown Copyright 2018
|
* @copyright Crown Copyright 2018
|
||||||
* @licence Apache-2.0
|
* @licence Apache-2.0
|
||||||
*/
|
*/
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
TestRegister.addTests([
|
TestRegister.addTests([
|
||||||
{
|
{
|
|
@ -5,7 +5,7 @@
|
||||||
* @copyright Crown Copyright 2018
|
* @copyright Crown Copyright 2018
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
TestRegister.addTests([
|
TestRegister.addTests([
|
||||||
{
|
{
|
|
@ -5,7 +5,7 @@
|
||||||
* @copyright Crown Copyright 2017
|
* @copyright Crown Copyright 2017
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
TestRegister.addTests([
|
TestRegister.addTests([
|
||||||
{
|
{
|
|
@ -5,7 +5,7 @@
|
||||||
* @copyright Crown Copyright 2018
|
* @copyright Crown Copyright 2018
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
TestRegister.addTests([
|
TestRegister.addTests([
|
||||||
{
|
{
|
|
@ -6,7 +6,7 @@
|
||||||
* @copyright Crown Copyright 2018
|
* @copyright Crown Copyright 2018
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
const ALL_BYTES = [
|
const ALL_BYTES = [
|
||||||
"\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
|
"\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
|
|
@ -7,7 +7,7 @@
|
||||||
* @copyright Crown Copyright 2017
|
* @copyright Crown Copyright 2017
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
TestRegister.addTests([
|
TestRegister.addTests([
|
||||||
{
|
{
|
|
@ -6,7 +6,7 @@
|
||||||
* @copyright Crown Copyright 2018
|
* @copyright Crown Copyright 2018
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
TestRegister.addTests([
|
TestRegister.addTests([
|
||||||
{
|
{
|
|
@ -6,7 +6,7 @@
|
||||||
* @copyright Crown Copyright 2018
|
* @copyright Crown Copyright 2018
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
TestRegister.addTests([
|
TestRegister.addTests([
|
||||||
{
|
{
|
|
@ -6,7 +6,7 @@
|
||||||
* @copyright Crown Copyright 2018
|
* @copyright Crown Copyright 2018
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
const outputObject = JSON.stringify({
|
const outputObject = JSON.stringify({
|
||||||
String: "SomeString",
|
String: "SomeString",
|
|
@ -6,7 +6,7 @@
|
||||||
* @copyright Crown Copyright 2018
|
* @copyright Crown Copyright 2018
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
const inputObject = JSON.stringify({
|
const inputObject = JSON.stringify({
|
||||||
String: "SomeString",
|
String: "SomeString",
|
|
@ -6,7 +6,7 @@
|
||||||
* @copyright Crown Copyright 2018
|
* @copyright Crown Copyright 2018
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
const outputObject = JSON.stringify({
|
const outputObject = JSON.stringify({
|
||||||
String: "SomeString",
|
String: "SomeString",
|
|
@ -6,7 +6,7 @@
|
||||||
* @copyright Crown Copyright 2018
|
* @copyright Crown Copyright 2018
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
TestRegister.addTests([
|
TestRegister.addTests([
|
||||||
{
|
{
|
|
@ -5,7 +5,7 @@
|
||||||
* @copyright Crown Copyright 2017
|
* @copyright Crown Copyright 2017
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
TestRegister.addTests([
|
TestRegister.addTests([
|
||||||
{
|
{
|
|
@ -6,7 +6,7 @@
|
||||||
* @copyright Crown Copyright 2018
|
* @copyright Crown Copyright 2018
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
|
|
||||||
TestRegister.addTests([
|
TestRegister.addTests([
|
|
@ -4,7 +4,7 @@
|
||||||
* @copyright Crown Copyright 2018
|
* @copyright Crown Copyright 2018
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
TestRegister.addTests([
|
TestRegister.addTests([
|
||||||
{
|
{
|
|
@ -6,7 +6,7 @@
|
||||||
* @copyright Crown Copyright 2017
|
* @copyright Crown Copyright 2017
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
TestRegister.addTests([
|
TestRegister.addTests([
|
||||||
{
|
{
|
|
@ -6,7 +6,7 @@
|
||||||
* @copyright Crown Copyright 2017
|
* @copyright Crown Copyright 2017
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
TestRegister.addTests([
|
TestRegister.addTests([
|
||||||
{
|
{
|
|
@ -6,7 +6,7 @@
|
||||||
* @copyright Crown Copyright 2017
|
* @copyright Crown Copyright 2017
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
TestRegister.addTests([
|
TestRegister.addTests([
|
||||||
{
|
{
|
|
@ -5,7 +5,7 @@
|
||||||
* @copyright Crown Copyright 2018
|
* @copyright Crown Copyright 2018
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
const ASCII_TEXT = "A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.";
|
const ASCII_TEXT = "A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.";
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
TestRegister.addTests([
|
TestRegister.addTests([
|
||||||
{
|
{
|
|
@ -5,7 +5,7 @@
|
||||||
* @copyright Crown Copyright 2017
|
* @copyright Crown Copyright 2017
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
TestRegister.addTests([
|
TestRegister.addTests([
|
||||||
{
|
{
|
|
@ -5,7 +5,7 @@
|
||||||
* @copyright Crown Copyright 2018
|
* @copyright Crown Copyright 2018
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
TestRegister.addTests([
|
TestRegister.addTests([
|
||||||
{
|
{
|
|
@ -6,7 +6,7 @@
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
TestRegister.addTests([
|
TestRegister.addTests([
|
||||||
{
|
{
|
|
@ -6,7 +6,7 @@
|
||||||
* @copyright Crown Copyright 2018
|
* @copyright Crown Copyright 2018
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
TestRegister.addTests([
|
TestRegister.addTests([
|
||||||
{
|
{
|
|
@ -5,7 +5,7 @@
|
||||||
* @copyright Crown Copyright 2017
|
* @copyright Crown Copyright 2017
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
TestRegister.addTests([
|
TestRegister.addTests([
|
||||||
{
|
{
|
|
@ -6,7 +6,7 @@
|
||||||
* @copyright Crown Copyright 2018
|
* @copyright Crown Copyright 2018
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
TestRegister.addTests([
|
TestRegister.addTests([
|
||||||
{
|
{
|
|
@ -5,7 +5,7 @@
|
||||||
* @copyright Crown Copyright 2017
|
* @copyright Crown Copyright 2017
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
TestRegister.addTests([
|
TestRegister.addTests([
|
||||||
{
|
{
|
|
@ -6,7 +6,7 @@
|
||||||
* @copyright Crown Copyright 2018
|
* @copyright Crown Copyright 2018
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
|
|
||||||
TestRegister.addTests([
|
TestRegister.addTests([
|
|
@ -5,7 +5,7 @@
|
||||||
* @copyright Copyright 2017
|
* @copyright Copyright 2017
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
TestRegister.addTests([
|
TestRegister.addTests([
|
||||||
{
|
{
|
|
@ -6,7 +6,7 @@
|
||||||
* @copyright Crown Copyright 2018
|
* @copyright Crown Copyright 2018
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
TestRegister.addTests([
|
TestRegister.addTests([
|
||||||
{
|
{
|
|
@ -6,7 +6,7 @@
|
||||||
* @copyright Crown Copyright 2018
|
* @copyright Crown Copyright 2018
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
TestRegister.addTests([
|
TestRegister.addTests([
|
||||||
{
|
{
|
|
@ -6,7 +6,7 @@
|
||||||
* @copyright Crown Copyright 2018
|
* @copyright Crown Copyright 2018
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
TestRegister.addTests([
|
TestRegister.addTests([
|
||||||
{
|
{
|
File diff suppressed because one or more lines are too long
|
@ -5,7 +5,7 @@
|
||||||
* @copyright Crown Copyright 2017
|
* @copyright Crown Copyright 2017
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
TestRegister.addTests([
|
TestRegister.addTests([
|
||||||
{
|
{
|
|
@ -6,7 +6,7 @@
|
||||||
* @copyright Crown Copyright 2018
|
* @copyright Crown Copyright 2018
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
TestRegister.addTests([
|
TestRegister.addTests([
|
||||||
{
|
{
|
|
@ -6,7 +6,7 @@
|
||||||
* @copyright Crown Copyright 2018
|
* @copyright Crown Copyright 2018
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
TestRegister.addTests([
|
TestRegister.addTests([
|
||||||
{
|
{
|
|
@ -5,7 +5,7 @@
|
||||||
* @copyright Crown Copyright 2018
|
* @copyright Crown Copyright 2018
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
TestRegister.addTests([
|
TestRegister.addTests([
|
||||||
{
|
{
|
|
@ -6,7 +6,7 @@
|
||||||
* @copyright Crown Copyright 2018
|
* @copyright Crown Copyright 2018
|
||||||
* @license Apache-2.0
|
* @license Apache-2.0
|
||||||
*/
|
*/
|
||||||
import TestRegister from "../../TestRegister";
|
import TestRegister from "../TestRegister";
|
||||||
|
|
||||||
TestRegister.addTests([
|
TestRegister.addTests([
|
||||||
{
|
{
|
Loading…
Reference in a new issue