Explorar el Código

Added Template#render test.

Aleksander Nowodzinski hace 10 años
padre
commit
04c2a3f8db
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  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',