@@ -29,7 +29,7 @@ suite("AlignOwnersFormattingProvider", () => {
2929 // Ignored anyway
3030 let mockOptions : vscode . FormattingOptions
3131 let mockToken : vscode . CancellationToken
32- const badOffSetValues = [ "invalid" , - 1 , 0 ] as const
32+ const badOffSetValues = [ - 1 , 0 ] as const
3333
3434 beforeEach ( ( ) => {
3535 provider = new AlignOwnersFormattingProvider ( )
@@ -44,14 +44,14 @@ suite("AlignOwnersFormattingProvider", () => {
4444
4545 afterEach ( async ( ) => {
4646 // restore default config
47- const settings = vscode . workspace . getConfiguration ( "github-code-owners " )
47+ const settings = vscode . workspace . getConfiguration ( "githubCodeOwners " )
4848 await settings . update (
4949 "format.enabled" ,
5050 true ,
5151 vscode . ConfigurationTarget . Global ,
5252 )
5353 await settings . update (
54- "format.alignment-offset " ,
54+ "format.alignmentOffset " ,
5555 4 ,
5656 vscode . ConfigurationTarget . Global ,
5757 )
@@ -73,7 +73,7 @@ suite("AlignOwnersFormattingProvider", () => {
7373 } )
7474
7575 test ( "should not edit when formatting is disabled" , async ( ) => {
76- const settings = vscode . workspace . getConfiguration ( "github-code-owners " )
76+ const settings = vscode . workspace . getConfiguration ( "githubCodeOwners " )
7777 await settings . update (
7878 "format.enabled" ,
7979 false ,
@@ -94,9 +94,9 @@ suite("AlignOwnersFormattingProvider", () => {
9494
9595 badOffSetValues . forEach ( ( badOffSetValue ) => {
9696 test ( `should throw an error when alignment offset is not a positive number: ${ badOffSetValue } ` , async ( ) => {
97- const settings = vscode . workspace . getConfiguration ( "github-code-owners " )
97+ const settings = vscode . workspace . getConfiguration ( "githubCodeOwners " )
9898 await settings . update (
99- "format.alignment-offset " ,
99+ "format.alignmentOffset " ,
100100 badOffSetValue ,
101101 vscode . ConfigurationTarget . Global ,
102102 )
@@ -138,9 +138,9 @@ suite("AlignOwnersFormattingProvider", () => {
138138 } )
139139
140140 test ( "should create same output as 'expected-formatted-with-offset-8'" , async ( ) => {
141- const settings = vscode . workspace . getConfiguration ( "github-code-owners " )
141+ const settings = vscode . workspace . getConfiguration ( "githubCodeOwners " )
142142 await settings . update (
143- "format.alignment-offset " ,
143+ "format.alignmentOffset " ,
144144 8 ,
145145 vscode . ConfigurationTarget . Global ,
146146 )
0 commit comments