This commit is contained in:
Alex Dima
2018-04-19 00:57:07 +02:00
parent 7812e8190e
commit cd55adf8a9
2 changed files with 20 additions and 1 deletions
@@ -673,4 +673,23 @@ suite('Editor Diff - DiffComputer', () => {
];
assertDiff(original, modified, expected, true, false);
});
test('issue #43922', () => {
let original = [
' * `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`.',
];
var expected = [
createLineChange(
1, 1, 1, 1,
[
createCharChange(1, 9, 1, 19, 0, 0, 0, 0),
createCharChange(1, 58, 1, 120, 0, 0, 0, 0),
]
)
];
assertDiff(original, modified, expected, true, false);
});
});