@@ -17,48 +17,48 @@ const should = chai.should()
1717
1818/** @type {import('../index.js').SocketYml } */
1919const defaults = {
20- ' version' : 2 ,
21- ' githubApp' : { } ,
22- ' issueRules' : { } ,
23- ' projectIgnorePaths' : [ ] ,
20+ version : 2 ,
21+ githubApp : { } ,
22+ issueRules : { } ,
23+ projectIgnorePaths : [ ] ,
2424}
2525
2626describe ( 'parseSocketConfig()' , ( ) => {
2727 it ( 'should read and parse socket.yml' , async ( ) => {
2828 const fileContent = await readFile ( path . resolve ( __dirname , 'sample.yml' ) , 'utf8' )
2929
3030 parseSocketConfig ( fileContent ) . should . deep . equal ( {
31- ' githubApp' : {
32- ' enabled' : true ,
33- ' projectReportsEnabled' : true ,
34- ' pullRequestAlertsEnabled' : true ,
31+ githubApp : {
32+ enabled : true ,
33+ projectReportsEnabled : true ,
34+ pullRequestAlertsEnabled : true ,
3535 } ,
36- ' issueRules' : {
37- ' unresolvedRequire' : false ,
36+ issueRules : {
37+ unresolvedRequire : false ,
3838 } ,
39- ' projectIgnorePaths' : [
39+ projectIgnorePaths : [
4040 'workspaces/test*' ,
4141 '!workspaces/test-framework' ,
4242 ] ,
43- ' version' : 2 ,
43+ version : 2 ,
4444 } )
4545 } )
4646
4747 it ( 'should read and parse socket.yml v1' , async ( ) => {
4848 const fileContent = await readFile ( path . resolve ( __dirname , 'sample-v1.yml' ) , 'utf8' )
4949
5050 parseSocketConfig ( fileContent ) . should . deep . equal ( {
51- ' githubApp' : {
52- ' enabled' : true ,
53- ' projectReportsEnabled' : false ,
54- ' pullRequestAlertsEnabled' : true ,
51+ githubApp : {
52+ enabled : true ,
53+ projectReportsEnabled : false ,
54+ pullRequestAlertsEnabled : true ,
5555 } ,
56- ' issueRules' : { } ,
57- ' projectIgnorePaths' : [
56+ issueRules : { } ,
57+ projectIgnorePaths : [
5858 'foo' ,
5959 'bar' ,
6060 ] ,
61- ' version' : 2 ,
61+ version : 2 ,
6262 } )
6363 } )
6464
0 commit comments