mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-17 10:36:22 +02:00
21 lines
409 B
Diff
21 lines
409 B
Diff
--- a/spec/util_spec.moon
|
|
+++ b/spec/util_spec.moon
|
|
@@ -160,7 +160,7 @@
|
|
util.to_json {
|
|
items: setmetatable {}, json.array_mt
|
|
}
|
|
- '{"items":[]}'
|
|
+ '{"items":{}}'
|
|
}
|
|
|
|
{ -- encoding non-empty array with array_mt
|
|
@@ -174,7 +174,7 @@
|
|
{ -- encoding top-level empty array with array_mt
|
|
->
|
|
util.to_json setmetatable({}, json.array_mt)
|
|
- '[]'
|
|
+ '{}'
|
|
}
|
|
|
|
{
|