Parcourir la source

Tests: Missing 100% CC.

Szymon Cofalik il y a 6 ans
Parent
commit
94e35360df

+ 2 - 2
packages/ckeditor5-engine/tests/conversion/downcastdispatcher.js

@@ -161,8 +161,8 @@ describe( 'DowncastDispatcher', () => {
 			model.markers._set( 'foo', fooRange );
 			model.markers._set( 'bar', barRange );
 
-			// Stub `_unboundMarkers`.
-			dispatcher.conversionApi.mapper._unboundMarkers = new Set( [ 'foo', 'bar' ] );
+			// Stub `Mapper#flushUnboundMarkerNames`.
+			dispatcher.conversionApi.mapper.flushUnboundMarkerNames = () => [ 'foo', 'bar' ];
 
 			view.change( writer => {
 				dispatcher.convertChanges( differStub, model.markers, writer );