@@ -150,6 +150,7 @@ describe('extendVegaSpec', () => {
150150 it ( 'should truncate all titles from the left to 50 characters for large plots' , ( ) => {
151151 const spec = withLongTemplatePlotTitle ( )
152152 const updatedSpec = extendVegaSpec ( spec , 1 , DEFAULT_PLOT_HEIGHT )
153+ delete updatedSpec . titles
153154
154155 const truncatedTitle = '…-many-many-characters-at-least-seventy-characters'
155156 const truncatedHorizontalTitle =
@@ -180,6 +181,7 @@ describe('extendVegaSpec', () => {
180181 DEFAULT_NB_ITEMS_PER_ROW ,
181182 DEFAULT_PLOT_HEIGHT
182183 )
184+ delete updatedSpec . titles
183185
184186 const truncatedTitle = '…-many-many-characters-at-least-seventy-characters'
185187 const truncatedHorizontalTitle =
@@ -206,6 +208,7 @@ describe('extendVegaSpec', () => {
206208 it ( 'should truncate all titles from the left to 30 characters for small plots' , ( ) => {
207209 const spec = withLongTemplatePlotTitle ( )
208210 const updatedSpec = extendVegaSpec ( spec , 3 , DEFAULT_PLOT_HEIGHT )
211+ delete updatedSpec . titles
209212
210213 const truncatedTitle = '…s-at-least-seventy-characters'
211214 const truncatedHorizontalTitle = '…at-least-seventy-characters-x'
@@ -236,6 +239,7 @@ describe('extendVegaSpec', () => {
236239 } )
237240
238241 const updatedSpec = extendVegaSpec ( spec , 3 , DEFAULT_PLOT_HEIGHT )
242+ delete updatedSpec . titles
239243
240244 const truncatedTitle = '…ghijklmnopqrstuvwyz1234567890'
241245
@@ -253,6 +257,7 @@ describe('extendVegaSpec', () => {
253257 const spec = withLongTemplatePlotTitle ( [ repeatedTitle , repeatedTitle ] )
254258
255259 const updatedSpec = extendVegaSpec ( spec , 3 , DEFAULT_PLOT_HEIGHT )
260+ delete updatedSpec . titles
256261
257262 const truncatedTitle = '…ghijklmnopqrstuvwyz1234567890'
258263
@@ -273,6 +278,7 @@ describe('extendVegaSpec', () => {
273278 } )
274279
275280 const updatedSpec = extendVegaSpec ( spec , 3 , DEFAULT_PLOT_HEIGHT )
281+ delete updatedSpec . titles
276282
277283 const truncatedTitle = '…ghijklmnopqrstuvwyz1234567890'
278284
@@ -305,6 +311,7 @@ describe('extendVegaSpec', () => {
305311 const updatedSpecCopy = cloneDeep ( updatedSpec )
306312 delete updatedSpecCopy . layer [ 1 ] . layer [ 0 ] . encoding . shape
307313 delete updatedSpecCopy . encoding
314+ delete updatedSpecCopy . titles
308315
309316 expect ( updatedSpecCopy ) . toStrictEqual ( multiSourceTemplate )
310317 } )
0 commit comments