@@ -29,25 +29,25 @@ describe("readWorkflowFile()", () => {
2929 } ) ;
3030
3131 describe ( "checking workflow properties" , ( ) => {
32- it ( " missing property ' jobs' should throw" , ( ) => {
32+ it ( ` missing property " jobs" should throw` , ( ) => {
3333 mockFs ( {
3434 ".github/workflows/azure-static-web-apps__not-valid.yml" : `name: Azure Static Web Apps CI/CD` ,
3535 } ) ;
3636
37- expect ( ( ) => readWorkflowFile ( ) ) . toThrow ( / m i s s i n g p r o p e r t y ' j o b s ' / ) ;
37+ expect ( ( ) => readWorkflowFile ( ) ) . toThrow ( / m i s s i n g p r o p e r t y " j o b s " / ) ;
3838 } ) ;
3939
40- it ( " missing property ' jobs.build_and_deploy_job' should throw" , ( ) => {
40+ it ( ` missing property " jobs.build_and_deploy_job" should throw` , ( ) => {
4141 mockFs ( {
4242 ".github/workflows/azure-static-web-apps.yml" : `
4343jobs:
4444 invalid_property:
4545` ,
4646 } ) ;
47- expect ( ( ) => readWorkflowFile ( ) ) . toThrow ( / m i s s i n g p r o p e r t y ' j o b s .b u i l d _ a n d _ d e p l o y _ j o b ' / ) ;
47+ expect ( ( ) => readWorkflowFile ( ) ) . toThrow ( / m i s s i n g p r o p e r t y " j o b s .b u i l d _ a n d _ d e p l o y _ j o b " / ) ;
4848 } ) ;
4949
50- it ( " missing property ' jobs.build_and_deploy_job.steps' should throw" , ( ) => {
50+ it ( ` missing property " jobs.build_and_deploy_job.steps" should throw` , ( ) => {
5151 mockFs ( {
5252 ".github/workflows/azure-static-web-apps.yml" : `
5353jobs:
@@ -56,21 +56,21 @@ jobs:
5656` ,
5757 } ) ;
5858
59- expect ( ( ) => readWorkflowFile ( ) ) . toThrow ( / m i s s i n g p r o p e r t y ' j o b s .b u i l d _ a n d _ d e p l o y _ j o b .s t e p s ' / ) ;
59+ expect ( ( ) => readWorkflowFile ( ) ) . toThrow ( / m i s s i n g p r o p e r t y " j o b s .b u i l d _ a n d _ d e p l o y _ j o b .s t e p s " / ) ;
6060 } ) ;
6161
62- it ( " invalid property ' jobs.build_and_deploy_job.steps' should throw" , ( ) => {
62+ it ( ` invalid property" jobs.build_and_deploy_job.steps" should throw` , ( ) => {
6363 mockFs ( {
6464 ".github/workflows/azure-static-web-apps.yml" : `
6565jobs:
6666 build_and_deploy_job:
6767 steps:
6868` ,
6969 } ) ;
70- expect ( ( ) => readWorkflowFile ( ) ) . toThrow ( / m i s s i n g p r o p e r t y ' j o b s .b u i l d _ a n d _ d e p l o y _ j o b .s t e p s ' / ) ;
70+ expect ( ( ) => readWorkflowFile ( ) ) . toThrow ( / m i s s i n g p r o p e r t y " j o b s .b u i l d _ a n d _ d e p l o y _ j o b .s t e p s " / ) ;
7171 } ) ;
7272
73- it ( " invalid property ' jobs.build_and_deploy_job.steps[]' should throw" , ( ) => {
73+ it ( ` invalid property " jobs.build_and_deploy_job.steps[]" should throw` , ( ) => {
7474 mockFs ( {
7575 ".github/workflows/azure-static-web-apps.yml" : `
7676jobs:
@@ -80,10 +80,10 @@ jobs:
8080` ,
8181 } ) ;
8282
83- expect ( ( ) => readWorkflowFile ( ) ) . toThrow ( / i n v a l i d p r o p e r t y ' j o b s .b u i l d _ a n d _ d e p l o y _ j o b .s t e p s \[ \] ' / ) ;
83+ expect ( ( ) => readWorkflowFile ( ) ) . toThrow ( / i n v a l i d p r o p e r t y " j o b s .b u i l d _ a n d _ d e p l o y _ j o b .s t e p s \[ \] " / ) ;
8484 } ) ;
8585
86- it ( " missing property ' jobs.build_and_deploy_job.steps[].with' should throw" , ( ) => {
86+ it ( ` missing property " jobs.build_and_deploy_job.steps[].with" should throw` , ( ) => {
8787 mockFs ( {
8888 ".github/workflows/azure-static-web-apps.yml" : `
8989jobs:
9494` ,
9595 } ) ;
9696
97- expect ( ( ) => readWorkflowFile ( ) ) . toThrow ( / m i s s i n g p r o p e r t y ' j o b s .b u i l d _ a n d _ d e p l o y _ j o b .s t e p s \[ \] .w i t h ' / ) ;
97+ expect ( ( ) => readWorkflowFile ( ) ) . toThrow ( / m i s s i n g p r o p e r t y " j o b s .b u i l d _ a n d _ d e p l o y _ j o b .s t e p s \[ \] .w i t h " / ) ;
9898 } ) ;
9999 } ) ;
100100
0 commit comments