@@ -28,11 +28,11 @@ describe( 'CKEditor Component', () => {
28
28
wrapper . destroy ( ) ;
29
29
} ) ;
30
30
31
- it ( 'component should have a name' , ( ) => {
31
+ it ( 'should have a name' , ( ) => {
32
32
expect ( CKEditorComponent . name ) . to . equal ( 'ckeditor' ) ;
33
33
} ) ;
34
34
35
- it ( 'calls editor#create when initializing' , async ( ) => {
35
+ it ( 'should call editor#create when initializing' , async ( ) => {
36
36
const stub = sandbox . stub ( MockEditor , 'create' ) . resolves ( new MockEditor ( ) ) ;
37
37
const { wrapper } = createComponent ( ) ;
38
38
@@ -42,7 +42,7 @@ describe( 'CKEditor Component', () => {
42
42
wrapper . destroy ( ) ;
43
43
} ) ;
44
44
45
- it ( 'calls editor#destroy when destroying' , async ( ) => {
45
+ it ( 'should call editor#destroy when destroying' , async ( ) => {
46
46
const stub = sandbox . stub ( MockEditor . prototype , 'destroy' ) . resolves ( ) ;
47
47
const { wrapper, vm } = createComponent ( ) ;
48
48
@@ -53,7 +53,7 @@ describe( 'CKEditor Component', () => {
53
53
expect ( vm . instance ) . to . be . null ;
54
54
} ) ;
55
55
56
- it ( 'passes editor promise rejection error to console. error' , async ( ) => {
56
+ it ( 'should pass the editor promise rejection error to console# error() ' , async ( ) => {
57
57
const error = new Error ( 'Something went wrong.' ) ;
58
58
const consoleErrorStub = sandbox . stub ( console , 'error' ) ;
59
59
@@ -73,7 +73,7 @@ describe( 'CKEditor Component', () => {
73
73
74
74
describe ( 'properties' , ( ) => {
75
75
describe ( '#editor' , ( ) => {
76
- it ( 'accepts an editor constructor' , async ( ) => {
76
+ it ( 'should accept an editor constructor' , async ( ) => {
77
77
const { wrapper, vm } = createComponent ( {
78
78
editor : MockEditor
79
79
} ) ;
@@ -145,7 +145,7 @@ describe( 'CKEditor Component', () => {
145
145
expect ( vm . config ) . to . deep . equal ( { } ) ;
146
146
} ) ;
147
147
148
- it ( 'should set the initial editor#config' , async ( ) => {
148
+ it ( 'should be set according to the initial editor#config' , async ( ) => {
149
149
const { wrapper, vm } = createComponent ( {
150
150
config : { foo : 'bar' }
151
151
} ) ;
@@ -259,14 +259,14 @@ describe( 'CKEditor Component', () => {
259
259
} ) ;
260
260
261
261
describe ( 'events' , ( ) => {
262
- it ( 'emits #ready when editor is created' , async ( ) => {
262
+ it ( 'should emit #ready when the editor is created' , async ( ) => {
263
263
await Vue . nextTick ( ) ;
264
264
265
265
expect ( wrapper . emitted ( ) . ready . length ) . to . equal ( 1 ) ;
266
266
expect ( wrapper . emitted ( ) . ready [ 0 ] ) . to . deep . equal ( [ vm . instance ] ) ;
267
267
} ) ;
268
268
269
- it ( 'emits #destroy when editor is destroyed' , async ( ) => {
269
+ it ( 'should emit #destroy when the editor is destroyed' , async ( ) => {
270
270
const { wrapper, vm } = createComponent ( ) ;
271
271
272
272
await Vue . nextTick ( ) ;
@@ -328,7 +328,7 @@ describe( 'CKEditor Component', () => {
328
328
} ) ;
329
329
} ) ;
330
330
331
- it ( 'emits #focus when editor editable is focused' , async ( ) => {
331
+ it ( 'should emit #focus when the editor editable is focused' , async ( ) => {
332
332
sandbox . stub ( ViewDocument . prototype , 'on' ) ;
333
333
334
334
await Vue . nextTick ( ) ;
@@ -350,7 +350,7 @@ describe( 'CKEditor Component', () => {
350
350
] ) ;
351
351
} ) ;
352
352
353
- it ( 'emits #blur when editor editable is focused ' , async ( ) => {
353
+ it ( 'should emits #blur when the editor editable is blurred ' , async ( ) => {
354
354
sandbox . stub ( ViewDocument . prototype , 'on' ) ;
355
355
356
356
await Vue . nextTick ( ) ;
0 commit comments