Przeglądaj źródła

Tests: Fixed broken test after renamed normalizeOptions() to normalizeColorOptions().

Aleksander Nowodzinski 6 lat temu
rodzic
commit
63462889c1
1 zmienionych plików z 8 dodań i 3 usunięć
  1. 8 3
      packages/ckeditor5-font/tests/utils.js

+ 8 - 3
packages/ckeditor5-font/tests/utils.js

@@ -3,7 +3,12 @@
  * For licensing, see LICENSE.md.
  */
 
-import { FONT_COLOR, FONT_BACKGROUND_COLOR, normalizeOptions, addColorTableToDropdown } from './../src/utils';
+import {
+	FONT_COLOR,
+	FONT_BACKGROUND_COLOR,
+	normalizeColorOptions,
+	addColorTableToDropdown
+} from './../src/utils';
 import { createDropdown } from '@ckeditor/ckeditor5-ui/src/dropdown/utils';
 import ColorTableView from './../src/ui/colortableview';
 
@@ -14,8 +19,8 @@ describe( 'utils', () => {
 			expect( FONT_BACKGROUND_COLOR ).to.equal( 'fontBackgroundColor' );
 		} );
 
-		it( 'normalizeOptions can produce the same output object', () => {
-			const normalizedArray = normalizeOptions( [
+		it( 'normalizeColorOptions can produce the same output object', () => {
+			const normalizedArray = normalizeColorOptions( [
 				'black',
 				{
 					color: 'black'