@@ -530,48 +530,72 @@ foo`),
530530 } ) ;
531531
532532 describe ( 'findProcess()' , ( ) => {
533- it ( 'should be available in main processe only' , ( ) => {
533+ it ( 'should be available in main process only' , ( ) => {
534534 var proc = findProcess ( getTokens ( 'Process: [Main](../glossary.md#main-process)' ) ) ;
535535 expect ( proc . main ) . toEqual ( true ) ;
536536 expect ( proc . renderer ) . toEqual ( false ) ;
537+ expect ( proc . utility ) . toEqual ( false ) ;
537538 } ) ;
538539
539- it ( 'should be available in renderer processe only' , ( ) => {
540+ it ( 'should be available in renderer process only' , ( ) => {
540541 var proc = findProcess ( getTokens ( 'Process: [Renderer](../glossary.md#renderer-process)' ) ) ;
541542 expect ( proc . main ) . toEqual ( false ) ;
542543 expect ( proc . renderer ) . toEqual ( true ) ;
544+ expect ( proc . utility ) . toEqual ( false ) ;
543545 } ) ;
544546
545- it ( 'should be available in both processes' , ( ) => {
547+ it ( 'should be available in utility process only' , ( ) => {
548+ var proc = findProcess ( getTokens ( 'Process: [Utility](../glossary.md#utility-process)' ) ) ;
549+ expect ( proc . main ) . toEqual ( false ) ;
550+ expect ( proc . renderer ) . toEqual ( false ) ;
551+ expect ( proc . utility ) . toEqual ( true ) ;
552+ } ) ;
553+
554+ it ( 'should be available in main and renderer processes' , ( ) => {
546555 var proc = findProcess (
547556 getTokens (
548557 'Process: [Main](../glossary.md#main-process), [Renderer](../glossary.md#renderer-process)' ,
549558 ) ,
550559 ) ;
551560 expect ( proc . main ) . toEqual ( true ) ;
552561 expect ( proc . renderer ) . toEqual ( true ) ;
562+ expect ( proc . utility ) . toEqual ( false ) ;
553563 } ) ;
554564
555- it ( 'should be available in both processes' , ( ) => {
565+ it ( 'should be available in main and renderer processes' , ( ) => {
556566 var proc = findProcess (
557567 getTokens (
558568 'Process: [Renderer](../glossary.md#renderer-process), [Main](../glossary.md#main-process)' ,
559569 ) ,
560570 ) ;
561571 expect ( proc . main ) . toEqual ( true ) ;
562572 expect ( proc . renderer ) . toEqual ( true ) ;
573+ expect ( proc . utility ) . toEqual ( false ) ;
574+ } ) ;
575+
576+ it ( 'should be available in main and utility processes' , ( ) => {
577+ var proc = findProcess (
578+ getTokens (
579+ 'Process: [Main](../glossary.md#main-process), [Utility](../glossary.md#renderer-process)' ,
580+ ) ,
581+ ) ;
582+ expect ( proc . main ) . toEqual ( true ) ;
583+ expect ( proc . renderer ) . toEqual ( false ) ;
584+ expect ( proc . utility ) . toEqual ( true ) ;
563585 } ) ;
564586
565- it ( 'should be available in both processes' , ( ) => {
587+ it ( 'should be available in all processes' , ( ) => {
566588 var proc = findProcess ( getTokens ( '' ) ) ;
567589 expect ( proc . main ) . toEqual ( true ) ;
568590 expect ( proc . renderer ) . toEqual ( true ) ;
591+ expect ( proc . utility ) . toEqual ( true ) ;
569592 } ) ;
570593
571- it ( 'should be available in both processes' , ( ) => {
594+ it ( 'should be available in all processes' , ( ) => {
572595 var proc = findProcess ( [ ] ) ;
573596 expect ( proc . main ) . toEqual ( true ) ;
574597 expect ( proc . renderer ) . toEqual ( true ) ;
598+ expect ( proc . utility ) . toEqual ( true ) ;
575599 } ) ;
576600 } ) ;
577601
0 commit comments