File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 30
30
"@ckeditor/ckeditor5-basic-styles" : " ^10.1.0" ,
31
31
"@ckeditor/ckeditor5-block-quote" : " ^10.1.1" ,
32
32
"@ckeditor/ckeditor5-ckfinder" : " ^10.0.0" ,
33
+ "@ckeditor/ckeditor5-core" : " ^11.1.0" ,
33
34
"@ckeditor/ckeditor5-dev-utils" : " ^11.0.1" ,
34
35
"@ckeditor/ckeditor5-dev-webpack-plugin" : " ^7.0.1" ,
35
36
"@ckeditor/ckeditor5-easy-image" : " ^10.0.4" ,
Original file line number Diff line number Diff line change 7
7
8
8
import ClassicEditor from '../src/ckeditor' ;
9
9
import BaseClassicEditor from '@ckeditor/ckeditor5-editor-classic/src/classiceditor' ;
10
+ import { describeMemoryUsage , testMemoryUsage } from '@ckeditor/ckeditor5-core/tests/_utils/memory' ;
10
11
11
12
describe ( 'ClassicEditor build' , ( ) => {
12
13
let editor , editorElement ;
@@ -23,7 +24,7 @@ describe( 'ClassicEditor build', () => {
23
24
editor = null ;
24
25
} ) ;
25
26
26
- describe ( 'buid ' , ( ) => {
27
+ describe ( 'build ' , ( ) => {
27
28
it ( 'contains plugins' , ( ) => {
28
29
expect ( ClassicEditor . builtinPlugins ) . to . not . be . empty ;
29
30
} ) ;
@@ -200,4 +201,10 @@ describe( 'ClassicEditor build', () => {
200
201
} ) ;
201
202
} ) ;
202
203
} ) ;
204
+
205
+ describeMemoryUsage ( ( ) => {
206
+ testMemoryUsage (
207
+ 'should not grow on multiple create/destroy' ,
208
+ ( ) => ClassicEditor . create ( document . querySelector ( '#mem-editor' ) ) ) ;
209
+ } ) ;
203
210
} ) ;
You can’t perform that action at this time.
0 commit comments