From 2f8b95f81968e3af092c5aa3fe31e8838ead6e64 Mon Sep 17 00:00:00 2001 From: aewering Date: Sun, 17 Dec 2023 20:32:51 +0100 Subject: [PATCH] fix elm tests --- tests/MapperTest.elm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/MapperTest.elm b/tests/MapperTest.elm index 37a7fb9..0dc5764 100644 --- a/tests/MapperTest.elm +++ b/tests/MapperTest.elm @@ -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 @@ -76,7 +77,7 @@ suite = ) ] in - Mapper.mapMain True + Mapper.mapMain Options.default [ { defaultFileDescriptorProto | name = "test.proto" , package = "testpackage" @@ -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