Browse Source

Added simple EditorUI test.

Piotrek Koszuliński 10 years ago
parent
commit
8e6803bde2
1 changed files with 24 additions and 0 deletions
  1. 24 0
      packages/ckeditor5-engine/tests/editorui.js

+ 24 - 0
packages/ckeditor5-engine/tests/editorui.js

@@ -0,0 +1,24 @@
+/**
+ * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
+ * For licensing, see LICENSE.md.
+ */
+
+'use strict';
+
+import Editor from '/ckeditor5/core/editor.js';
+import EditorUI from '/ckeditor5/core/editorui.js';
+
+describe( 'EditorUI', () => {
+	let editor, editorUI;
+
+	beforeEach( () => {
+		editor = new Editor();
+		editorUI = new EditorUI( editor );
+	} );
+
+	describe( 'constructor', () => {
+		it( 'sets all the properties', () => {
+			expect( editorUI ).to.have.property( 'editor', editor );
+		} );
+	} );
+} );