Browse Source

Use assertEqualMarkup in the tests.

Maciej Gołaszewski 6 years ago
parent
commit
aa8c469d39
1 changed files with 2 additions and 1 deletions
  1. 2 1
      packages/ckeditor5-paste-from-office/tests/_utils/utils.js

+ 2 - 1
packages/ckeditor5-paste-from-office/tests/_utils/utils.js

@@ -13,6 +13,7 @@ import normalizeClipboardData from '@ckeditor/ckeditor5-clipboard/src/utils/norm
 import normalizeHtml from '@ckeditor/ckeditor5-utils/tests/_utils/normalizehtml';
 import { setData, stringify as stringifyModel } from '@ckeditor/ckeditor5-engine/src/dev-utils/model';
 import { stringify as stringifyView } from '@ckeditor/ckeditor5-engine/src/dev-utils/view';
+import { assertEqualMarkup } from '@ckeditor/ckeditor5-utils/tests/_utils/utils';
 
 import { fixtures, browserFixtures } from './fixtures';
 
@@ -309,7 +310,7 @@ function compareContentWithBase64Images( actual, expected ) {
 
 	// In some rare cases there might be ` ` in a model data
 	// (see https://github.com/ckeditor/ckeditor5-paste-from-office/issues/27).
-	expect( actualModel.replace( /\u00A0/g, ' ' ) ).to.equal( expectedModel );
+	assertEqualMarkup( actualModel.replace( /\u00A0/g, ' ' ), expectedModel );
 
 	if ( actualImages.length > 0 && expectedImages.length > 0 ) {
 		expect( actualImages.length ).to.equal( expectedImages.length );