|
|
@@ -14,7 +14,6 @@ describe( 'ContextualBalloon', () => {
|
|
|
|
|
|
beforeEach( () => {
|
|
|
balloon = new ContextualBalloon();
|
|
|
- balloon.view = new BalloonPanelView();
|
|
|
|
|
|
viewA = new ViewA();
|
|
|
viewB = new ViewB();
|
|
|
@@ -27,6 +26,12 @@ describe( 'ContextualBalloon', () => {
|
|
|
balloon.view.attachTo.restore();
|
|
|
} );
|
|
|
|
|
|
+ describe( 'constructor()', () => {
|
|
|
+ it( 'should create a class instance with properties', () => {
|
|
|
+ expect( balloon.view ).to.instanceof( BalloonPanelView );
|
|
|
+ } );
|
|
|
+ } );
|
|
|
+
|
|
|
describe( 'isPanelInStack()', () => {
|
|
|
it( 'should return true when panel of given view is in stack', () => {
|
|
|
balloon.add( {
|