mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-29 18:09:01 +01:00
Fixes #43922
This commit is contained in:
@@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user