Procházet zdrojové kódy

Added Template#render test.

Aleksander Nowodzinski před 10 roky
rodič
revize
04c2a3f8db
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  1. 4 0
      packages/ckeditor5-ui/tests/ui/template.js

+ 4 - 0
packages/ckeditor5-ui/tests/ui/template.js

@@ -25,6 +25,10 @@ describe( 'constructor', function() {
 } );
 
 describe( 'render', function() {
+	it( 'returns null when no definition', function() {
+		expect( new Template().render() ).to.be.null;
+	} );
+
 	it( 'creates an element', function() {
 		var el = new Template( {
 			tag: 'p',