8
0
Эх сурвалжийг харах

Added test to ensure that the required Lo-Dash methods are available in `utils`.

fredck 10 жил өмнө
parent
commit
ead211531a

+ 13 - 1
packages/ckeditor5-engine/tests/utils/utils.js

@@ -7,7 +7,7 @@
 
 'use strict';
 
-var modules = bender.amd.require( 'utils' );
+var modules = bender.amd.require( 'utils', 'utils-lodash' );
 
 describe( 'extend()', function() {
 	// Properties of the subsequent objects should override properties of the preceding objects. This is critical for
@@ -38,3 +38,15 @@ describe( 'extend()', function() {
 		expect( target ).to.have.property( 'd' ).to.equal( 2 );
 	} );
 } );
+
+describe( 'Lo-Dash extensions', function() {
+	// Ensures that the required Lo-Dash extensions are available in `utils`.
+	it( 'should be exposed in utils', function() {
+		var utils = modules.utils;
+		var extensions = modules[ 'utils-lodash' ];
+
+		extensions.forEach( function( extension ) {
+			expect( utils ).to.have.property( extension ).to.not.be.undefined();
+		} );
+	} );
+} );