Explorar o código

Ignored the mock used temporarily for tests.

Piotrek Koszuliński %!s(int64=9) %!d(string=hai) anos
pai
achega
fa6f96a5d5

+ 6 - 0
packages/ckeditor5-editor-classic/src/utils/imitatefeatures.js

@@ -24,6 +24,10 @@ export function imitateFeatures( editor ) {
 		icon: 'bold'
 	} );
 
+	// Note – most of the contents of this file is ignored, as it's a temporary file that will
+	// be replaced with real features.
+
+	/* istanbul ignore next */
 	boldModel.on( 'execute', () => {
 		/* global console */
 		console.log( 'bold executed' );
@@ -33,6 +37,7 @@ export function imitateFeatures( editor ) {
 
 	editor.ui.featureComponents.add( 'bold', Button, ButtonView, boldModel );
 
+	/* istanbul ignore next */
 	const italicModel = new Model( {
 		isEnabled: true,
 		isOn: false,
@@ -40,6 +45,7 @@ export function imitateFeatures( editor ) {
 		icon: 'italic'
 	} );
 
+	/* istanbul ignore next */
 	italicModel.on( 'execute', () => {
 		/* global console */
 		console.log( 'italic executed' );