This commit is contained in:
Alex Dima
2018-05-03 17:01:51 +02:00
parent fc8b4c0daa
commit 10ca8670b5
2 changed files with 31 additions and 10 deletions
@@ -679,7 +679,7 @@ suite('Editor Diff - DiffComputer', () => {
' * `yarn [install]` -- Install project NPM dependencies. This is automatically done when you first create the project. You should only need to run this if you add dependencies in `package.json`.',
];
let modified = [
' * `yarn` -- Install project NPM dependencies. You should only need to run this if you add dependencies in `package.json`.',
' * `yarn` -- Install project NPM dependencies. You should only need to run this if you add dependencies in `package.json`.',
];
let expected = [
createLineChange(
@@ -692,4 +692,24 @@ suite('Editor Diff - DiffComputer', () => {
];
assertDiff(original, modified, expected, true, false);
});
test('issue #42751', () => {
let original = [
' 1',
' 2',
];
let modified = [
' 1',
' 3',
];
let expected = [
createLineChange(
2, 2, 2, 2,
[
createCharChange(2, 3, 2, 4, 2, 3, 2, 5)
]
)
];
assertDiff(original, modified, expected, true, false);
});
});