@@ -429,59 +429,6 @@ describe(`metadata utility tests`, async () => {
429
429
} ) ;
430
430
} ) ;
431
431
432
- it ( "new ipynb metadata can be created from existing data" , ( ) => {
433
- const notebookMetadata : metadataUtilities . NotebookDocumentMetadata = {
434
- kernelInfo : {
435
- defaultKernelName : "csharp" ,
436
- items : [
437
- {
438
- name : "csharp" ,
439
- aliases : [ "cs" ] ,
440
- languageName : "csharp" ,
441
- } ,
442
- ] ,
443
- } ,
444
- } ;
445
- const existingMetadata : { [ key : string ] : any } = {
446
- metadata : {
447
- kernelspec : "this gets replaced" ,
448
- someKey : "some value" ,
449
- } ,
450
- metadata2 : "electric boogaloo" ,
451
- notCustom : "not custom" ,
452
- } ;
453
- const newRawMetadata =
454
- metadataUtilities . createNewIpynbMetadataWithNotebookDocumentMetadata (
455
- existingMetadata ,
456
- notebookMetadata
457
- ) ;
458
-
459
- expect ( newRawMetadata ) . to . deep . equal ( {
460
- metadata : {
461
- kernelspec : {
462
- display_name : ".NET (C#)" ,
463
- language : "C#" ,
464
- name : ".net-csharp" ,
465
- } ,
466
- polyglot_notebook : {
467
- kernelInfo : {
468
- defaultKernelName : "csharp" ,
469
- items : [
470
- {
471
- aliases : [ "cs" ] ,
472
- languageName : "csharp" ,
473
- name : "csharp" ,
474
- } ,
475
- ] ,
476
- } ,
477
- } ,
478
- someKey : "some value" ,
479
- } ,
480
- metadata2 : "electric boogaloo" ,
481
- notCustom : "not custom" ,
482
- } ) ;
483
- } ) ;
484
-
485
432
it ( "notebook metadata can be extracted from a composite kernel" , ( ) => {
486
433
const kernel = new CompositeKernel ( "composite" ) ;
487
434
const cs = new Kernel ( "csharp" , "csharp" ) ;
0 commit comments