@@ -116,28 +116,28 @@ CommentDelimiters = "{/*"
116116}
117117
118118func Test_processConfig_transform (t * testing.T ) {
119- body := `[*.xml]
119+ body := `[*.xml]
120120Transform = transform.xsl
121121`
122- uCfg , err := shadowLoad ([]byte (body ))
123- if err != nil {
124- t .Fatal (err )
125- }
122+ uCfg , err := shadowLoad ([]byte (body ))
123+ if err != nil {
124+ t .Fatal (err )
125+ }
126126
127- conf , err := NewConfig (& CLIFlags {})
128- if err != nil {
129- t .Fatal (err )
130- }
131- conf .AddConfigFile ("C:\\ Source\\ project\\ .vale.ini" )
127+ conf , err := NewConfig (& CLIFlags {})
128+ if err != nil {
129+ t .Fatal (err )
130+ }
131+ conf .AddConfigFile ("C:\\ Source\\ project\\ .vale.ini" )
132132
133- _ , err = processConfig (uCfg , conf , false )
134- if err != nil {
135- t .Fatal (err )
136- }
133+ _ , err = processConfig (uCfg , conf , false )
134+ if err != nil {
135+ t .Fatal (err )
136+ }
137137
138- actual := conf .Stylesheets ["*.xml" ]
139- expected := "C:\\ Source\\ project\\ transform.xsl"
140- if actual != expected {
141- t .Errorf ("expected %v, but got %v" , expected , actual )
142- }
143- }
138+ actual := conf .Stylesheets ["*.xml" ]
139+ expected := "C:\\ Source\\ project\\ transform.xsl"
140+ if actual != expected {
141+ t .Errorf ("expected %v, but got %v" , expected , actual )
142+ }
143+ }
0 commit comments