Skip to content

Commit a3b2549

Browse files
Milan RougemontMilan Rougemont
authored andcommitted
Fix CI error
1 parent eb8d8fa commit a3b2549

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

calque_snapshots/Checking a list of maps.accepted.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Checking a list of maps
44
source: test/calque_test.exs:69
55
---
66
[
7-
%{id: 1, label: "first", status: :pending},
8-
%{id: 2, label: "second", status: :done},
9-
%{id: 3, label: "third", status: :failed}
7+
%{"id" => 1, "label" => "first", "status" => :pending},
8+
%{"id" => 2, "label" => "second", "status" => :done},
9+
%{"id" => 3, "label" => "third", "status" => :failed}
1010
]

calque_snapshots/Checking a nested map.accepted.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Checking a nested map
44
source: test/calque_test.exs:53
55
---
66
%{
7-
user: %{name: "Bob", email: "bob@example.com"},
8-
permissions: [:read, :write],
9-
metadata: %{version: 2, created_at: "2024-01-01"}
7+
"metadata" => %{"created_at" => "2024-01-01", "version" => 2},
8+
"permissions" => [:read, :write],
9+
"user" => %{"email" => "bob@example.com", "name" => "Bob"}
1010
}

calque_snapshots/This is a snapshot test testing the macro.accepted.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ version: 1.5.1
33
title: This is a snapshot test testing the macro
44
source: test/calque_test.exs:26
55
---
6-
%{title: "This is a snapshot test checking a map"}
6+
%{"title" => "This is a snapshot test checking a map"}

test/calque_test.exs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ defmodule CalqueTest do
2121
end
2222

2323
test "This is a snapshot test testing the macro" do
24-
%{title: "This is a snapshot test checking a map"}
25-
|> inspect()
24+
%{"title" => "This is a snapshot test checking a map"}
25+
|> inspect(sort_keys: true)
2626
|> Calque.check()
2727
end
2828

@@ -45,11 +45,11 @@ defmodule CalqueTest do
4545

4646
test "Checking a nested map" do
4747
%{
48-
user: %{name: "Bob", email: "bob@example.com"},
49-
permissions: [:read, :write],
50-
metadata: %{created_at: "2024-01-01", version: 2}
48+
"user" => %{"name" => "Bob", "email" => "bob@example.com"},
49+
"permissions" => [:read, :write],
50+
"metadata" => %{"created_at" => "2024-01-01", "version" => 2}
5151
}
52-
|> inspect(pretty: true)
52+
|> inspect(sort_keys: true, pretty: true)
5353
|> Calque.check()
5454
end
5555

@@ -61,11 +61,11 @@ defmodule CalqueTest do
6161

6262
test "Checking a list of maps" do
6363
[
64-
%{id: 1, status: :pending, label: "first"},
65-
%{id: 2, status: :done, label: "second"},
66-
%{id: 3, status: :failed, label: "third"}
64+
%{"id" => 1, "status" => :pending, "label" => "first"},
65+
%{"id" => 2, "status" => :done, "label" => "second"},
66+
%{"id" => 3, "status" => :failed, "label" => "third"}
6767
]
68-
|> inspect(pretty: true)
68+
|> inspect(sort_keys: true, pretty: true)
6969
|> Calque.check()
7070
end
7171

0 commit comments

Comments
 (0)