@@ -64,32 +64,32 @@ providerTests = testGroup "formatting provider" [
64
64
documentContents doc >>= liftIO . (@?= formattedFloskell)
65
65
66
66
, testCase " can change on the fly" $ runSession hlsCommand fullCaps " test/testdata/format" $ do
67
- formattedBrittany <- liftIO $ T. readFile " test/testdata/format/Format.ormolu.formatted.hs"
67
+ formattedOrmolu <- liftIO $ T. readFile " test/testdata/format/Format.ormolu.formatted.hs"
68
68
formattedFloskell <- liftIO $ T. readFile " test/testdata/format/Format.floskell.formatted.hs"
69
- formattedBrittanyPostFloskell <- liftIO $ T. readFile " test/testdata/format/Format.ormolu_post_floskell.formatted.hs"
69
+ formattedOrmoluPostFloskell <- liftIO $ T. readFile " test/testdata/format/Format.ormolu_post_floskell.formatted.hs"
70
70
71
71
doc <- openDoc " Format.hs" " haskell"
72
72
73
73
sendNotification SWorkspaceDidChangeConfiguration (DidChangeConfigurationParams (formatLspConfig " ormolu" ))
74
74
formatDoc doc (FormattingOptions 2 True Nothing Nothing Nothing )
75
- documentContents doc >>= liftIO . (@?= formattedBrittany )
75
+ documentContents doc >>= liftIO . (@?= formattedOrmolu )
76
76
77
77
sendNotification SWorkspaceDidChangeConfiguration (DidChangeConfigurationParams (formatLspConfig " floskell" ))
78
78
formatDoc doc (FormattingOptions 2 True Nothing Nothing Nothing )
79
79
documentContents doc >>= liftIO . (@?= formattedFloskell)
80
80
81
81
sendNotification SWorkspaceDidChangeConfiguration (DidChangeConfigurationParams (formatLspConfig " ormolu" ))
82
82
formatDoc doc (FormattingOptions 2 True Nothing Nothing Nothing )
83
- documentContents doc >>= liftIO . (@?= formattedBrittanyPostFloskell )
83
+ documentContents doc >>= liftIO . (@?= formattedOrmoluPostFloskell )
84
84
, testCase " supports both new and old configuration sections" $ runSession hlsCommand fullCaps " test/testdata/format" $ do
85
- formattedBrittany <- liftIO $ T. readFile " test/testdata/format/Format.ormolu.formatted.hs"
85
+ formattedOrmolu <- liftIO $ T. readFile " test/testdata/format/Format.ormolu.formatted.hs"
86
86
formattedFloskell <- liftIO $ T. readFile " test/testdata/format/Format.floskell.formatted.hs"
87
87
88
88
doc <- openDoc " Format.hs" " haskell"
89
89
90
90
sendNotification SWorkspaceDidChangeConfiguration (DidChangeConfigurationParams (formatLspConfigOld " ormolu" ))
91
91
formatDoc doc (FormattingOptions 2 True Nothing Nothing Nothing )
92
- documentContents doc >>= liftIO . (@?= formattedBrittany )
92
+ documentContents doc >>= liftIO . (@?= formattedOrmolu )
93
93
94
94
sendNotification SWorkspaceDidChangeConfiguration (DidChangeConfigurationParams (formatLspConfigOld " floskell" ))
95
95
formatDoc doc (FormattingOptions 2 True Nothing Nothing Nothing )
0 commit comments