@@ -31,7 +31,7 @@ describe('Overlay & Underlay fromJson', () => {
31
31
actionType : 'overlay' ,
32
32
source,
33
33
position,
34
- blendMode : 'multiply'
34
+ blendMode : { blendModeType : 'multiply' }
35
35
} ;
36
36
37
37
const overlayTransformation = fromJson ( { actions : [ overlayModel ] } ) ;
@@ -62,14 +62,14 @@ describe('Overlay & Underlay fromJson', () => {
62
62
source,
63
63
position,
64
64
timelinePosition,
65
- blendMode : 'multiply'
65
+ blendMode : { blendModeType : 'antiRemoval' , level : '96' }
66
66
} ;
67
67
68
68
const overlayTransformation = fromJson ( { actions : [ overlayModel ] } ) ;
69
69
const underlayTransformation = fromJson ( { actions : [ { ...overlayModel , actionType : 'underlay' } ] } ) ;
70
70
71
- expect ( overlayTransformation . toString ( ) ) . toStrictEqual ( 'l_video:dog.mp4/ar_7.0,c_scale,w_100/du_2,e_multiply ,fl_layer_apply,fl_tiled,g_north_east,so_1,x_1,y_2' ) ;
72
- expect ( underlayTransformation . toString ( ) ) . toStrictEqual ( 'u_video:dog.mp4/ar_7.0,c_scale,w_100/du_2,e_multiply ,fl_layer_apply,fl_tiled,g_north_east,so_1,x_1,y_2' ) ;
71
+ expect ( overlayTransformation . toString ( ) ) . toStrictEqual ( 'l_video:dog.mp4/ar_7.0,c_scale,w_100/du_2,e_anti_removal:96 ,fl_layer_apply,fl_tiled,g_north_east,so_1,x_1,y_2' ) ;
72
+ expect ( underlayTransformation . toString ( ) ) . toStrictEqual ( 'u_video:dog.mp4/ar_7.0,c_scale,w_100/du_2,e_anti_removal:96 ,fl_layer_apply,fl_tiled,g_north_east,so_1,x_1,y_2' ) ;
73
73
} ) ;
74
74
75
75
it ( 'Should generate Overlay for fetch source' , ( ) => {
@@ -88,14 +88,14 @@ describe('Overlay & Underlay fromJson', () => {
88
88
actionType : 'overlay' ,
89
89
source,
90
90
position,
91
- blendMode : 'multiply'
91
+ blendMode : { blendModeType : 'antiRemoval' }
92
92
} ;
93
93
94
94
const overlayTransformation = fromJson ( { actions : [ overlayModel ] } ) ;
95
95
const underlayTransformation = fromJson ( { actions : [ { ...overlayModel , actionType : 'underlay' } ] } ) ;
96
96
97
- expect ( overlayTransformation . toString ( ) ) . toStrictEqual ( 'l_fetch:aHR0cHM6Ly9zb21lL2ltYWdlLmpwZw==/ar_7.0,c_scale,w_100/e_multiply ,fl_layer_apply,fl_tiled,g_north_east,x_1,y_2' ) ;
98
- expect ( underlayTransformation . toString ( ) ) . toStrictEqual ( 'u_fetch:aHR0cHM6Ly9zb21lL2ltYWdlLmpwZw==/ar_7.0,c_scale,w_100/e_multiply ,fl_layer_apply,fl_tiled,g_north_east,x_1,y_2' ) ;
97
+ expect ( overlayTransformation . toString ( ) ) . toStrictEqual ( 'l_fetch:aHR0cHM6Ly9zb21lL2ltYWdlLmpwZw==/ar_7.0,c_scale,w_100/e_anti_removal ,fl_layer_apply,fl_tiled,g_north_east,x_1,y_2' ) ;
98
+ expect ( underlayTransformation . toString ( ) ) . toStrictEqual ( 'u_fetch:aHR0cHM6Ly9zb21lL2ltYWdlLmpwZw==/ar_7.0,c_scale,w_100/e_anti_removal ,fl_layer_apply,fl_tiled,g_north_east,x_1,y_2' ) ;
99
99
} ) ;
100
100
101
101
it ( 'Should generate Overlay for text source' , ( ) => {
0 commit comments