@@ -55,7 +55,7 @@ func TestConfig(t *testing.T) {
55
55
// nix
56
56
nix , ok := cfg .Formatters ["nix" ]
57
57
as .True (ok , "nix formatter not found" )
58
- as .Equal ("nixpkgs-fmt " , nix .Command )
58
+ as .Equal ("alejandra " , nix .Command )
59
59
as .Nil (nix .Options )
60
60
as .Equal ([]string {"*.nix" }, nix .Includes )
61
61
as .Equal ([]string {"examples/nix/sources.nix" }, nix .Excludes )
@@ -72,7 +72,7 @@ func TestConfig(t *testing.T) {
72
72
prettier , ok := cfg .Formatters ["prettier" ]
73
73
as .True (ok , "prettier formatter not found" )
74
74
as .Equal ("prettier" , prettier .Command )
75
- as .Equal ([]string {"--write" }, prettier .Options )
75
+ as .Equal ([]string {"--write" , "--tab-width" , "4" }, prettier .Options )
76
76
as .Equal ([]string {
77
77
"*.css" ,
78
78
"*.html" ,
@@ -88,12 +88,12 @@ func TestConfig(t *testing.T) {
88
88
as .Equal ([]string {"CHANGELOG.md" }, prettier .Excludes )
89
89
90
90
// rust
91
- // rust, ok := cfg.Formatters["rust"]
92
- // as.True(ok, "rust formatter not found")
93
- // as.Equal("rustfmt", rust.Command)
94
- // as.Equal([]string{"--edition", "2018"}, rust.Options)
95
- // as.Equal([]string{"*.rs"}, rust.Includes)
96
- // as.Nil(rust.Excludes)
91
+ rust , ok := cfg .Formatters ["rust" ]
92
+ as .True (ok , "rust formatter not found" )
93
+ as .Equal ("rustfmt" , rust .Command )
94
+ as .Equal ([]string {"--edition" , "2018" }, rust .Options )
95
+ as .Equal ([]string {"*.rs" }, rust .Includes )
96
+ as .Nil (rust .Excludes )
97
97
98
98
// shell
99
99
shell , ok := cfg .Formatters ["shell" ]
0 commit comments