@@ -97,11 +97,7 @@ class ConfigTest
9797 val emptyConfig = " "
9898 val Success (userConfig) =
9999 Config .parseUserConfig(emptyConfig).success
100-
101- userConfig should have(
102- " plugins" as None ,
103- " dotfiles" as None
104- )
100+ userConfig shouldBe UserConfig .empty
105101 }
106102
107103 " parses a user config file with only comments" in {
@@ -111,53 +107,7 @@ class ConfigTest
111107 val Success (userConfig) =
112108 Config .parseUserConfig(commentsOnlyConfig).success
113109
114- userConfig should have(
115- " plugins" as None ,
116- " dotfiles" as None
117- )
118- }
119-
120- " parses a user config file with comments and YAML content" in {
121- val configWithComments = """ # This is a comment
122- |plugins:
123- | intellij:
124- | - "com.example.plugin"
125- | vscode:
126- | - "example.vscode-plugin"
127- |""" .stripMargin
128- val Success (userConfig) =
129- Config .parseUserConfig(configWithComments).success
130-
131- userConfig should have(
132- " plugins" as Some (
133- Plugins (
134- List (" com.example.plugin" ),
135- List (" example.vscode-plugin" )
136- )
137- ),
138- " dotfiles" as None
139- )
140- }
141-
142- " parses a user config file with inline comments" in {
143- val configWithInlineComments = """ plugins: # User plugins
144- | intellij:
145- | - "com.example.plugin" # Example plugin
146- | vscode:
147- | - "example.vscode-plugin"
148- |""" .stripMargin
149- val Success (userConfig) =
150- Config .parseUserConfig(configWithInlineComments).success
151-
152- userConfig should have(
153- " plugins" as Some (
154- Plugins (
155- List (" com.example.plugin" ),
156- List (" example.vscode-plugin" )
157- )
158- ),
159- " dotfiles" as None
160- )
110+ userConfig shouldBe UserConfig .empty
161111 }
162112 }
163113
0 commit comments