|
|
@@ -60,7 +60,7 @@ describe( 'LabeledInputView', () => {
|
|
|
} );
|
|
|
} );
|
|
|
|
|
|
- describe( 'select', () => {
|
|
|
+ describe( 'select()', () => {
|
|
|
it( 'should select input value', () => {
|
|
|
const spy = sinon.spy( view.inputView, 'select' );
|
|
|
|
|
|
@@ -69,4 +69,14 @@ describe( 'LabeledInputView', () => {
|
|
|
sinon.assert.calledOnce( spy );
|
|
|
} );
|
|
|
} );
|
|
|
+
|
|
|
+ describe( 'focus()', () => {
|
|
|
+ it( 'focuses the input in DOM', () => {
|
|
|
+ const spy = sinon.spy( view.inputView, 'focus' );
|
|
|
+
|
|
|
+ view.focus();
|
|
|
+
|
|
|
+ sinon.assert.calledOnce( spy );
|
|
|
+ } );
|
|
|
+ } );
|
|
|
} );
|