@@ -39,7 +39,8 @@ suite('ChartBigNumberBlockConverter', () => {
3939 output_type : 'execute_result' ,
4040 execution_count : 9 ,
4141 data : {
42- 'text/plain' : '{"comparisonTitle": "vs a", "comparisonValue": "10", "title": "percentage change", "value": "30"}'
42+ 'text/plain' :
43+ '{"comparisonTitle": "vs a", "comparisonValue": "10", "title": "percentage change", "value": "30"}'
4344 } ,
4445 metadata : { }
4546 }
@@ -89,7 +90,8 @@ suite('ChartBigNumberBlockConverter', () => {
8990 output_type : 'execute_result' ,
9091 execution_count : 9 ,
9192 data : {
92- 'text/plain' : '{"comparisonTitle": "vs a", "comparisonValue": "10", "title": "absolute change", "value": "30"}'
93+ 'text/plain' :
94+ '{"comparisonTitle": "vs a", "comparisonValue": "10", "title": "absolute change", "value": "30"}'
9395 } ,
9496 metadata : { }
9597 }
@@ -139,7 +141,8 @@ suite('ChartBigNumberBlockConverter', () => {
139141 output_type : 'execute_result' ,
140142 execution_count : 18 ,
141143 data : {
142- 'text/plain' : '{"comparisonTitle": "vs a", "comparisonValue": "10", "title": "absolute value", "value": "30"}'
144+ 'text/plain' :
145+ '{"comparisonTitle": "vs a", "comparisonValue": "10", "title": "absolute value", "value": "30"}'
143146 } ,
144147 metadata : { }
145148 }
@@ -189,7 +192,8 @@ suite('ChartBigNumberBlockConverter', () => {
189192 output_type : 'execute_result' ,
190193 execution_count : 33 ,
191194 data : {
192- 'text/plain' : '{"comparisonTitle": "vs a", "comparisonValue": "10", "title": "sgjaoshdgoashgopiashgoihasdoighasoihgoiasdhgoisadhgoihsdoghasdoighaosdg", "value": "30"}'
195+ 'text/plain' :
196+ '{"comparisonTitle": "vs a", "comparisonValue": "10", "title": "sgjaoshdgoashgopiashgoihasdoighasoihgoiasdhgoisadhgoihsdoghasdoighaosdg", "value": "30"}'
193197 } ,
194198 metadata : { }
195199 }
@@ -220,7 +224,8 @@ suite('ChartBigNumberBlockConverter', () => {
220224 metadata : {
221225 deepnote_big_number_title : 'metadata title' ,
222226 deepnote_big_number_value : 'metadata value' ,
223- [ DEEPNOTE_VSCODE_RAW_CONTENT_KEY ] : '{"deepnote_big_number_title": "raw title", "deepnote_big_number_value": "raw value"}'
227+ [ DEEPNOTE_VSCODE_RAW_CONTENT_KEY ] :
228+ '{"deepnote_big_number_title": "raw title", "deepnote_big_number_value": "raw value"}'
224229 } ,
225230 sortingKey : 'a0' ,
226231 type : 'big-number'
@@ -230,7 +235,10 @@ suite('ChartBigNumberBlockConverter', () => {
230235
231236 assert . strictEqual ( cell . kind , NotebookCellKind . Code ) ;
232237 assert . strictEqual ( cell . languageId , 'json' ) ;
233- assert . strictEqual ( cell . value , '{"deepnote_big_number_title": "raw title", "deepnote_big_number_value": "raw value"}' ) ;
238+ assert . strictEqual (
239+ cell . value ,
240+ '{"deepnote_big_number_title": "raw title", "deepnote_big_number_value": "raw value"}'
241+ ) ;
234242 } ) ;
235243
236244 test ( 'uses default config when metadata is invalid' , ( ) => {
@@ -298,16 +306,20 @@ suite('ChartBigNumberBlockConverter', () => {
298306 sortingKey : 'a0' ,
299307 type : 'big-number'
300308 } ;
301- const configStr = JSON . stringify ( {
302- deepnote_big_number_title : 'new title' ,
303- deepnote_big_number_value : 'new value' ,
304- deepnote_big_number_format : 'number' ,
305- deepnote_big_number_comparison_type : 'percentage-change' ,
306- deepnote_big_number_comparison_title : 'vs old' ,
307- deepnote_big_number_comparison_value : 'old value' ,
308- deepnote_big_number_comparison_format : '' ,
309- deepnote_big_number_comparison_enabled : true
310- } , null , 2 ) ;
309+ const configStr = JSON . stringify (
310+ {
311+ deepnote_big_number_title : 'new title' ,
312+ deepnote_big_number_value : 'new value' ,
313+ deepnote_big_number_format : 'number' ,
314+ deepnote_big_number_comparison_type : 'percentage-change' ,
315+ deepnote_big_number_comparison_title : 'vs old' ,
316+ deepnote_big_number_comparison_value : 'old value' ,
317+ deepnote_big_number_comparison_format : '' ,
318+ deepnote_big_number_comparison_enabled : true
319+ } ,
320+ null ,
321+ 2
322+ ) ;
311323 const cell = new NotebookCellData ( NotebookCellKind . Code , configStr , 'json' ) ;
312324
313325 converter . applyChangesToBlock ( block , cell ) ;
@@ -354,9 +366,13 @@ suite('ChartBigNumberBlockConverter', () => {
354366 sortingKey : 'a0' ,
355367 type : 'big-number'
356368 } ;
357- const configStr = JSON . stringify ( {
358- deepnote_big_number_title : 'new title'
359- } , null , 2 ) ;
369+ const configStr = JSON . stringify (
370+ {
371+ deepnote_big_number_title : 'new title'
372+ } ,
373+ null ,
374+ 2
375+ ) ;
360376 const cell = new NotebookCellData ( NotebookCellKind . Code , configStr , 'json' ) ;
361377
362378 converter . applyChangesToBlock ( block , cell ) ;
@@ -396,9 +412,13 @@ suite('ChartBigNumberBlockConverter', () => {
396412 sortingKey : 'a0' ,
397413 type : 'big-number'
398414 } ;
399- const configStr = JSON . stringify ( {
400- deepnote_big_number_title : 'new title'
401- } , null , 2 ) ;
415+ const configStr = JSON . stringify (
416+ {
417+ deepnote_big_number_title : 'new title'
418+ } ,
419+ null ,
420+ 2
421+ ) ;
402422 const cell = new NotebookCellData ( NotebookCellKind . Code , configStr , 'json' ) ;
403423
404424 converter . applyChangesToBlock ( block , cell ) ;
0 commit comments