File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed 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