aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/gleam/dynamic_test.gleam8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/gleam/dynamic_test.gleam b/test/gleam/dynamic_test.gleam
index 7d490dc..902cc92 100644
--- a/test/gleam/dynamic_test.gleam
+++ b/test/gleam/dynamic_test.gleam
@@ -254,7 +254,11 @@ if javascript {
|> dynamic.from
|> dynamic.field("Nope", dynamic.int)
|> should.equal(Error([
- DecodeError(expected: "Value with field \"Nope\"", found: "Result"),
+ DecodeError(
+ expected: "Value with field \"Nope\"",
+ found: "Result",
+ path: [],
+ ),
]))
}
}
@@ -318,7 +322,7 @@ pub fn element_test() {
|> dynamic.from
|> dynamic.element(1, dynamic.string)
|> should.equal(Error([
- DecodeError(expected: "String", found: "Int", path: []),
+ DecodeError(expected: "String", found: "Int", path: ["1"]),
]))
ok_one_tuple