Skip to content

Commit a17bdc1

Browse files
committed
Remove incorrect HistoryNavigator test case -
Doesn't test what it describes. 'adding an existing item changes the order' covers this. See microsoft@c84be64
1 parent 643f651 commit a17bdc1

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

src/vs/base/test/common/history.test.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,6 @@ suite('History Navigator', () => {
8282
assert.deepEqual(['4', '5'], toArray(testObject));
8383
});
8484

85-
test('adding existing element changes the position', function () {
86-
let testObject = new HistoryNavigator(['1', '2', '3', '4'], 2);
87-
88-
testObject.add('2');
89-
90-
assert.deepEqual(['4', '2'], toArray(testObject));
91-
});
92-
9385
test('add resets the navigator to last', function () {
9486
let testObject = new HistoryNavigator(['1', '2', '3', '4'], 3);
9587

0 commit comments

Comments
 (0)