|
|
@@ -208,7 +208,7 @@ describe( 'View', () => {
|
|
|
} );
|
|
|
} );
|
|
|
|
|
|
- describe( 'el', () => {
|
|
|
+ describe( 'element', () => {
|
|
|
beforeEach( createViewInstanceWithTemplate );
|
|
|
|
|
|
it( 'invokes out of #template', () => {
|
|
|
@@ -231,6 +231,10 @@ describe( 'View', () => {
|
|
|
|
|
|
expect( view.element ).to.be.an.instanceof( HTMLElement );
|
|
|
} );
|
|
|
+
|
|
|
+ it( 'is null when there is no template', () => {
|
|
|
+ expect( new View().element ).to.be.null;
|
|
|
+ } );
|
|
|
} );
|
|
|
|
|
|
describe( 'attributeBinder', () => {
|