@@ -37,12 +37,12 @@ describe( 'ImageUploadCommand', () => {
3737 } ) ;
3838 } ) ;
3939
40- describe ( '_doExecute ' , ( ) => {
40+ describe ( 'execute() ' , ( ) => {
4141 it ( 'should insert image' , ( ) => {
4242 const file = createNativeFileMock ( ) ;
4343 setModelData ( document , '<paragraph>[]foo</paragraph>' ) ;
4444
45- command . _doExecute ( { file } ) ;
45+ command . execute ( { file } ) ;
4646
4747 const id = fileRepository . getLoader ( file ) . id ;
4848 expect ( getModelData ( document ) ) . to . equal ( `[<image uploadId="${ id } "></image>]<paragraph>foo</paragraph>` ) ;
@@ -52,7 +52,7 @@ describe( 'ImageUploadCommand', () => {
5252 const file = createNativeFileMock ( ) ;
5353 setModelData ( document , '<paragraph>foo[]</paragraph>' ) ;
5454
55- command . _doExecute ( { file } ) ;
55+ command . execute ( { file } ) ;
5656
5757 const id = fileRepository . getLoader ( file ) . id ;
5858 expect ( getModelData ( document ) ) . to . equal ( `<paragraph>foo</paragraph>[<image uploadId="${ id } "></image>]` ) ;
@@ -62,7 +62,7 @@ describe( 'ImageUploadCommand', () => {
6262 const file = createNativeFileMock ( ) ;
6363 setModelData ( document , '<paragraph>f{}oo</paragraph>' ) ;
6464
65- command . _doExecute ( { file } ) ;
65+ command . execute ( { file } ) ;
6666
6767 const id = fileRepository . getLoader ( file ) . id ;
6868 expect ( getModelData ( document ) ) . to . equal ( `[<image uploadId="${ id } "></image>]<paragraph>foo</paragraph>` ) ;
@@ -72,7 +72,7 @@ describe( 'ImageUploadCommand', () => {
7272 const file = createNativeFileMock ( ) ;
7373 setModelData ( document , '[<image src="image.png"></image>]' ) ;
7474
75- command . _doExecute ( { file } ) ;
75+ command . execute ( { file } ) ;
7676
7777 const id = fileRepository . getLoader ( file ) . id ;
7878 expect ( getModelData ( document ) ) . to . equal ( `<image src="image.png"></image>[<image uploadId="${ id } "></image>]` ) ;
@@ -88,7 +88,7 @@ describe( 'ImageUploadCommand', () => {
8888
8989 setModelData ( document , '<other>[]</other>' ) ;
9090
91- command . _doExecute ( { file } ) ;
91+ command . execute ( { file } ) ;
9292
9393 expect ( getModelData ( document ) ) . to . equal ( '<other>[]</other>' ) ;
9494 } ) ;
@@ -97,7 +97,7 @@ describe( 'ImageUploadCommand', () => {
9797 const file = createNativeFileMock ( ) ;
9898 file . type = 'audio/mpeg3' ;
9999 setModelData ( document , '<paragraph>foo[]</paragraph>' ) ;
100- command . _doExecute ( { file } ) ;
100+ command . execute ( { file } ) ;
101101
102102 expect ( getModelData ( document ) ) . to . equal ( '<paragraph>foo[]</paragraph>' ) ;
103103 } ) ;
@@ -109,7 +109,7 @@ describe( 'ImageUploadCommand', () => {
109109
110110 setModelData ( document , '<paragraph>[]foo</paragraph>' ) ;
111111
112- command . _doExecute ( { batch, file } ) ;
112+ command . execute ( { batch, file } ) ;
113113 const id = fileRepository . getLoader ( file ) . id ;
114114
115115 expect ( getModelData ( document ) ) . to . equal ( `[<image uploadId="${ id } "></image>]<paragraph>foo</paragraph>` ) ;
0 commit comments