Skip to content

Commit 524a922

Browse files
committed
Fix changed API
1 parent 55d5eda commit 524a922

1 file changed

Lines changed: 23 additions & 25 deletions

File tree

tests/RedundantQualification.elm

Lines changed: 23 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -19,36 +19,34 @@ inTypeAliases : Test
1919
inTypeAliases =
2020
test "In type aliases" <|
2121
\_ ->
22-
Elm.Expect.fileContentAs
23-
(Elm.file [ "Foo" ]
24-
[ Elm.alias "Bar" (Elm.Annotation.named [ "Foo" ] "Baz") ]
25-
)
26-
"""
27-
module Foo exposing (..)
22+
Elm.file [ "Foo" ]
23+
[ Elm.alias "Bar" (Elm.Annotation.named [ "Foo" ] "Baz") ]
24+
|> Elm.Expect.fileContentAs
25+
"""
26+
module Foo exposing (..)
2827
2928
30-
type alias Bar =
31-
Baz
32-
"""
29+
type alias Bar =
30+
Baz
31+
"""
3332

3433

3534
inAnnotation : Test
3635
inAnnotation =
3736
test "In annotation" <|
3837
\_ ->
39-
Elm.Expect.fileContentAs
40-
(Elm.file [ "Foo" ]
41-
[ Elm.fn
42-
(Elm.Arg.varWith "v" (Elm.Annotation.named [ "Foo" ] "Baz"))
43-
identity
44-
|> Elm.declaration "id"
45-
]
46-
)
47-
"""
48-
module Foo exposing (..)
49-
50-
51-
id : Baz -> Baz
52-
id v =
53-
v
54-
"""
38+
Elm.file [ "Foo" ]
39+
[ Elm.fn
40+
(Elm.Arg.varWith "v" (Elm.Annotation.named [ "Foo" ] "Baz"))
41+
identity
42+
|> Elm.declaration "id"
43+
]
44+
|> Elm.Expect.fileContentAs
45+
"""
46+
module Foo exposing (..)
47+
48+
49+
id : Baz -> Baz
50+
id v =
51+
v
52+
"""

0 commit comments

Comments
 (0)