瀏覽代碼

Fixed failing test.

Oskar Wrobel 9 年之前
父節點
當前提交
e413bb2143
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      packages/ckeditor5-ui/src/template.js
  2. 1 1
      packages/ckeditor5-ui/tests/template.js

+ 1 - 1
packages/ckeditor5-ui/src/template.js

@@ -35,7 +35,7 @@ const bindIfSymbol = Symbol( 'bindIf' );
  *
  * will render the following HTMLElement:
  *
- *		<p class="foo" style="background-color:yellow">A paragraph.</p>
+ *		<p class="foo" style="background-color: yellow;">A paragraph.</p>
  *
  * See {@link ui.TemplateDefinition} to know more about templates and see complex examples.
  *

+ 1 - 1
packages/ckeditor5-ui/tests/template.js

@@ -376,7 +376,7 @@ describe( 'Template', () => {
 					}
 				} );
 
-				expect( el.outerHTML ).to.be.equal( '<p style="background-color: yellow;"></p>' );
+				expect( el.outerHTML ).to.be.equal( '<p></p>' );
 			} );
 
 			it( 'renders with empty properties', () => {