mirror of
https://github.com/gchq/CyberChef
synced 2025-01-12 20:48:49 +00:00
Fixed 'Diff' imports and added test
This commit is contained in:
parent
559e32a16a
commit
ed21dff88f
8 changed files with 20 additions and 9 deletions
2
.babelrc
2
.babelrc
|
@ -9,4 +9,4 @@
|
|||
"modules": false
|
||||
}]
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -121,7 +121,7 @@ module.exports = function (grunt) {
|
|||
options: {
|
||||
configFile: "src/.eslintrc.json"
|
||||
},
|
||||
gruntfile: ["Gruntfile.js"],
|
||||
configs: ["Gruntfile.js"],
|
||||
core: ["src/core/**/*.js", "!src/core/lib/**/*"],
|
||||
web: ["src/web/**/*.js"],
|
||||
node: ["src/node/**/*.js"],
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1,5 +1,5 @@
|
|||
import Utils from "../Utils.js";
|
||||
import JsDiff from "diff";
|
||||
import * as JsDiff from "diff";
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
128 source files
|
||||
129 source files
|
||||
49196 lines
|
||||
1.9M size
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
|||
21013 lines
|
||||
788K size
|
||||
|
||||
uncompressed JavaScript size
|
||||
4.7M uncompressed JavaScript size
|
||||
compressed JavaScript size
|
||||
|
||||
15 categories
|
||||
|
|
|
@ -23,4 +23,15 @@ TestRegister.addTests([
|
|||
}
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "Diff, basic usage",
|
||||
input: "testing23\n\ntesting123",
|
||||
expectedOutput: "testing<span class='hlgreen'>1</span>23",
|
||||
recipeConfig: [
|
||||
{
|
||||
"op": "Diff",
|
||||
"args": ["\\n\\n", "Character", true, true, false]
|
||||
}
|
||||
],
|
||||
},
|
||||
]);
|
||||
|
|
Loading…
Reference in a new issue