clearAllMarkers

This commit is contained in:
Simon Lamon
2022-07-31 07:38:14 +00:00
parent 848aceaa25
commit 0a83040ac8
2 changed files with 14 additions and 0 deletions
+13
View File
@@ -71,4 +71,17 @@ describe('BufferSet', () => {
assert.equal(bufferSet.active.y, 10);
});
});
describe('markers', () => {
beforeEach(() => {
});
it('should clear the markers when the buffer is switched', () => {
bufferSet.activateAltBuffer();
bufferSet.alt.addMarker(1);
assert.equal(bufferSet.alt.markers.length, 1);
bufferSet.activateNormalBuffer();
assert.equal(bufferSet.alt.markers.length, 0);
});
});
});