Skip to content

Commit ea6e7cf

Browse files
committed
Format
1 parent f0d5727 commit ea6e7cf

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

test/absinthe/subscription/pipeline_serializer_test.exs

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,12 @@ defmodule Absinthe.Subscription.PipelineSerializerTest do
2828
{Phase4, [option1: :value1]}
2929
]
3030

31-
assert {:packed,
32-
[
33-
{Phase1, [:pack | 0]},
34-
Phase2,
35-
{Phase3, [:pack | 1]},
36-
{Phase4, [:pack | 0]}
37-
],
38-
%{0 => [option1: :value1], 1 => [option2: :value2]}} =
39-
PipelineSerializer.pack(pipeline)
31+
assert {:packed, config, options} = PipelineSerializer.pack(pipeline)
32+
33+
assert [{Phase1, [:pack | 0]}, Phase2, {Phase3, [:pack | 1]}, {Phase4, [:pack | 0]}] =
34+
config
35+
36+
assert %{0 => [option1: :value1], 1 => [option2: :value2]} = options
4037
end
4138

4239
test "packs variables and contexts in options" do

0 commit comments

Comments
 (0)