Skip to content

Commit

Permalink
fix elm tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aewering committed Dec 17, 2023
1 parent 05afb58 commit 2f8b95f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/MapperTest.elm
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import Mapper.Package as Package exposing (Packages)
import Mapper.Struct exposing (Struct, empty)
import Mapper.Syntax exposing (Syntax(..))
import Model exposing (Cardinality(..), Field(..), FieldType(..), Primitive(..), TypeKind(..))
import Options
import Proto.Google.Protobuf exposing (DescriptorProto, DescriptorProto_, EnumDescriptorProto, EnumValueDescriptorProto, FieldDescriptorProto, FileDescriptorProto, MessageOptions, MethodDescriptorProto, wrapDescriptorProto)
import Proto.Google.Protobuf.FieldDescriptorProto as FieldDescriptorProto
import Set
Expand Down Expand Up @@ -76,7 +77,7 @@ suite =
)
]
in
Mapper.mapMain True
Mapper.mapMain Options.default
[ { defaultFileDescriptorProto
| name = "test.proto"
, package = "testpackage"
Expand Down Expand Up @@ -161,7 +162,7 @@ suite =
]
}
in
Mapper.mapMain True [ file1, file2, file3 ]
Mapper.mapMain Options.default [ file1, file2, file3 ]
|> List.map (Tuple.second >> Result.withDefault Dict.empty)
|> Package.concat
|> Expect.equal
Expand Down

0 comments on commit 2f8b95f

Please sign in to comment.