Skip to content
This repository has been archived by the owner on Nov 16, 2017. It is now read-only.

Commit

Permalink
Minor code–style refactoring in tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksander Nowodziński authored and Aleksander Nowodziński committed Nov 4, 2016
1 parent 7a03559 commit 490e6bb
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion tests/balloonpanel/balloonpanelview.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe( 'BalloonPanelView', () => {
return view.init();
} );

describe( 'constructor', () => {
describe( 'constructor()', () => {
it( 'should create element from template', () => {
expect( view.element.tagName ).to.equal( 'DIV' );
expect( view.element.classList.contains( 'ck-balloon-panel' ) ).to.true;
Expand Down
2 changes: 1 addition & 1 deletion tests/dropdown/dropdownpanelview.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe( 'DropdownPanelView', () => {
return ( view = new DropdownPanelView( locale ) ).init();
} );

describe( 'constructor', () => {
describe( 'constructor()', () => {
it( 'sets view#locale', () => {
expect( view.locale ).to.equal( locale );
} );
Expand Down
2 changes: 1 addition & 1 deletion tests/dropdown/dropdownview.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe( 'DropdownView', () => {
return ( view = new DropdownView( locale, buttonView, panelView ) ).init();
} );

describe( 'constructor', () => {
describe( 'constructor()', () => {
it( 'sets view#locale', () => {
expect( view.locale ).to.equal( locale );
} );
Expand Down
2 changes: 1 addition & 1 deletion tests/dropdown/list/createlistdropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe( 'createListDropdown', () => {
} );
} );

describe( 'constructor', () => {
describe( 'constructor()', () => {
it( 'sets view#locale', () => {
expect( view.locale ).to.equal( locale );
} );
Expand Down
2 changes: 1 addition & 1 deletion tests/editableui/editableuiview.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ describe( 'EditableUIView', () => {
return ( view = new EditableUIView( locale ) ).init();
} );

describe( 'constructor', () => {
describe( 'constructor()', () => {
it( 'sets initial values of attributes', () => {
expect( view.isReadOnly ).to.be.false;
expect( view.isFocused ).to.be.false;
Expand Down
2 changes: 1 addition & 1 deletion tests/editableui/inline/inlineeditableuiview.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ describe( 'InlineEditableUIView', () => {
return ( view = new InlineEditableUIView( locale ) ).init();
} );

describe( 'constructor', () => {
describe( 'constructor()', () => {
it( 'accepts locale', () => {
expect( view.locale ).to.equal( locale );
} );
Expand Down
2 changes: 1 addition & 1 deletion tests/editorui/boxed/boxededitoruiview.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ describe( 'BoxedEditorUIView', () => {
element = view.element;
} );

describe( 'constructor', () => {
describe( 'constructor()', () => {
it( 'adds controller collections', () => {
expect( view.top ).to.be.instanceof( ViewCollection );
expect( view.main ).to.be.instanceof( ViewCollection );
Expand Down
2 changes: 1 addition & 1 deletion tests/editorui/editoruiview.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe( 'EditorUIView', () => {
return view.init();
} );

describe( 'constructor', () => {
describe( 'constructor()', () => {
it( 'accepts locale', () => {
expect( view.locale ).to.equal( locale );
} );
Expand Down
2 changes: 1 addition & 1 deletion tests/icon/iconview.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe( 'IconView', () => {
return ( view = new IconView() ).init();
} );

describe( 'constructor', () => {
describe( 'constructor()', () => {
it( 'creates element from template', () => {
expect( view.element.tagName ).to.equal( 'svg' );
expect( view.element.getAttribute( 'class' ) ).to.equal( 'ck-icon' );
Expand Down
2 changes: 1 addition & 1 deletion tests/iconmanager/iconmanagerview.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe( 'IconManagerView', () => {
return view.init();
} );

describe( 'constructor', () => {
describe( 'constructor()', () => {
it( 'sets initial view attribute values', () => {
expect( new IconManagerView().sprite ).to.be.null;
} );
Expand Down
2 changes: 1 addition & 1 deletion tests/labeledinput/labeledinputview.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe( 'LabeledInputView', () => {
view.init();
} );

describe( 'constructor', () => {
describe( 'constructor()', () => {
it( 'should set view#locale', () => {
expect( view.locale ).to.deep.equal( locale );
} );
Expand Down
2 changes: 1 addition & 1 deletion tests/list/listview.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe( 'ListView', () => {
return ( view = new ListView() ).init();
} );

describe( 'constructor', () => {
describe( 'constructor()', () => {
it( 'creates element from template', () => {
expect( view.element.classList.contains( 'ck-reset' ) ).to.be.true;
expect( view.element.classList.contains( 'ck-list' ) ).to.be.true;
Expand Down
2 changes: 1 addition & 1 deletion tests/toolbar/toolbarview.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe( 'ToolbarView', () => {
return view.init();
} );

describe( 'constructor', () => {
describe( 'constructor()', () => {
it( 'should set view#locale', () => {
expect( view.locale ).to.equal( locale );
} );
Expand Down

0 comments on commit 490e6bb

Please sign in to comment.