Browse Source

Fix tests.

Maciej Gołaszewski 6 years ago
parent
commit
a47a44fcfc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/ckeditor5-engine/src/view/styles.js

+ 1 - 1
packages/ckeditor5-engine/src/view/styles.js

@@ -150,7 +150,7 @@ export default class Styles {
 
 		// TODO: probably not good enough.
 		// TODO: consumables must have different names or support shorthands.
-		return inlineStyle.split( ';' ).filter( f => f !== '' ).map( abc => abc.split( ':' )[ 0 ] ).sort();
+		return ( inlineStyle || '' ).split( ';' ).filter( f => f !== '' ).map( abc => abc.split( ':' )[ 0 ] ).sort();
 	}
 
 	clear() {