1
0
mirror of synced 2024-11-28 00:20:48 +01:00

Fixed 'Diff' imports and added test

This commit is contained in:
n1474335 2017-03-27 19:39:04 +01:00
parent 559e32a16a
commit ed21dff88f
8 changed files with 20 additions and 9 deletions

View File

@ -9,4 +9,4 @@
"modules": false
}]
]
}
}

View File

@ -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

View File

@ -1,5 +1,5 @@
import Utils from "../Utils.js";
import JsDiff from "diff";
import * as JsDiff from "diff";
/**

View File

@ -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

View File

@ -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]
}
],
},
]);