Jelajahi Sumber

Tests: Consistent test groups naming. [skip ci]

Krzysztof Krztoń 7 tahun lalu
induk
melakukan
da9db065c5

+ 1 - 1
packages/ckeditor5-paste-from-office/tests/filters/list.js

@@ -13,7 +13,7 @@ describe( 'Filters', () => {
 	describe( 'List', () => {
 		const htmlDataProcessor = new HtmlDataProcessor();
 
-		describe( 'transformListItemLikeElementsIntoLists', () => {
+		describe( 'transformListItemLikeElementsIntoLists()', () => {
 			it( 'replaces list-like elements with semantic lists', () => {
 				const html = '<p style="mso-list:l0 level1 lfo0"><span style="mso-list:Ignore">1.</span>Item 1</p>';
 				const view = htmlDataProcessor.toView( html );

+ 1 - 1
packages/ckeditor5-paste-from-office/tests/filters/parse.js

@@ -11,7 +11,7 @@ import { parseHtml } from '../../src/filters/parse';
 
 describe( 'Filters', () => {
 	describe( 'parse', () => {
-		describe( 'parseHtml', () => {
+		describe( 'parseHtml()', () => {
 			it( 'correctly parses HTML with body and one style tag', () => {
 				const html = '<head><style>p { color: red; } a { font-size: 12px; }</style></head><body><p>Foo Bar</p></body>';
 				const { body, bodyString, styles, stylesString } = parseHtml( html );

+ 2 - 2
packages/ckeditor5-paste-from-office/tests/filters/space.js

@@ -9,7 +9,7 @@ import { normalizeSpacing, normalizeSpacerunSpans } from '../../src/filters/spac
 
 describe( 'Filters', () => {
 	describe( 'space', () => {
-		describe( 'normalizeSpacing', () => {
+		describe( 'normalizeSpacing()', () => {
 			it( 'should replace last space before closing tag with NBSP', () => {
 				const input = '<p>Foo </p><p><span> Bar  </span> Baz </p>';
 				const expected = '<p>Foo\u00A0</p><p><span> Bar \u00A0</span> Baz\u00A0</p>';
@@ -39,7 +39,7 @@ describe( 'Filters', () => {
 			} );
 		} );
 
-		describe( 'normalizeSpacerunSpans', () => {
+		describe( 'normalizeSpacerunSpans()', () => {
 			it( 'should normalize spaces inside special "span.spacerun" elements', () => {
 				const input = '<p> <span style=\'mso-spacerun:yes\'>   </span>Foo</p>' +
 					'<p> Baz <span style=\'mso-spacerun:yes\'>      </span></p>';