@@ -1048,7 +1048,7 @@ describe('AttachmentManager', () => {
10481048 } ,
10491049 } ,
10501050 options : {
1051- code : 'api:attachment:upload:failed' ,
1051+ type : 'api:attachment:upload:failed' ,
10521052 metadata : { reason : 'Upload failed' } ,
10531053 originalError : expect . any ( Error ) ,
10541054 } ,
@@ -1089,7 +1089,7 @@ describe('AttachmentManager', () => {
10891089 } ,
10901090 } ,
10911091 options : {
1092- code : 'validation:attachment:upload:blocked' ,
1092+ type : 'validation:attachment:upload:blocked' ,
10931093 metadata : { reason : 'size_limit' } ,
10941094 } ,
10951095 } ) ;
@@ -1168,7 +1168,7 @@ describe('AttachmentManager', () => {
11681168 expect ( mockClient . notifications . addError ) . toHaveBeenCalledWith ( {
11691169 message : 'File is required for upload attachment' ,
11701170 options : {
1171- code : 'validation:attachment:file:missing' ,
1171+ type : 'validation:attachment:file:missing' ,
11721172 } ,
11731173 origin : {
11741174 emitter : 'AttachmentManager' ,
@@ -1202,7 +1202,7 @@ describe('AttachmentManager', () => {
12021202 expect ( mockClient . notifications . addError ) . toHaveBeenCalledWith ( {
12031203 message : 'File is required for upload attachment' ,
12041204 options : {
1205- code : 'validation:attachment:file:missing' ,
1205+ type : 'validation:attachment:file:missing' ,
12061206 } ,
12071207 origin : {
12081208 emitter : 'AttachmentManager' ,
0 commit comments