|
|
@@ -18,7 +18,7 @@ describe( 'LinkFormView', () => {
|
|
|
let view;
|
|
|
|
|
|
beforeEach( () => {
|
|
|
- view = new LinkFormView( { t: () => {} } );
|
|
|
+ view = new LinkFormView( { t: () => 'http://example.com' } );
|
|
|
|
|
|
return view.init();
|
|
|
} );
|
|
|
@@ -97,6 +97,12 @@ describe( 'LinkFormView', () => {
|
|
|
expect( spy.calledOnce ).to.true;
|
|
|
} );
|
|
|
|
|
|
+ describe( 'url input view', () => {
|
|
|
+ it( 'has placeholder', () => {
|
|
|
+ expect( view.urlInputView.inputView.placeholder ).to.equal( 'http://example.com' );
|
|
|
+ } );
|
|
|
+ } );
|
|
|
+
|
|
|
describe( 'template', () => {
|
|
|
it( 'has url input view', () => {
|
|
|
expect( view.template.children.get( 0 ) ).to.equal( view.urlInputView );
|