Skip to content

Commit

Permalink
Fix whitespace problems in the E2E test
Browse files Browse the repository at this point in the history
  • Loading branch information
alco committed Nov 29, 2023
1 parent ef951aa commit 5a0a033
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions e2e/tests/03.19_node_satellite_can_sync_json.lux
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@
[shell satellite_1]
# Wait for the rows to arrive
[invoke node_await_get_json "row1"]

# read raw JSON that is stored in the DB
# json must preserve whitespace and key ordering
#[invoke node_get_json_raw "row1" "{ a: 1, c: true, b: \"foo\", d: null, e: [1,2,3] }"]
# when parsed as JSON, whitespace is trimmed but key order is kept
# when parsed as JSON, whitespace is trimmed but key order is kept
#[invoke node_get_json "row1" "{ a: 1, c: true, b: \"foo\", d: null, e: [1,2,3] }"]
# jsonb trims white space and sorts keys
[invoke node_get_jsonb_raw "row1" "[{\"a\": 1}, {\"b\": 5, \"d\": false}]"]
Expand Down Expand Up @@ -110,7 +110,7 @@
# read raw JSON that is stored in the DB
# json must preserve whitespace and key ordering
#[invoke node_get_json_raw "row1" "{ a: 1, c: true, b: \"foo\", d: null, e: [1,2,3] }"]
# when parsed as JSON, whitespace is trimmed but key order is kept
# when parsed as JSON, whitespace is trimmed but key order is kept
#[invoke node_get_json "row1" "{ a: 1, c: true, b: \"foo\", d: null, e: [1,2,3] }"]
# jsonb trims white space and sorts keys
[invoke node_get_jsonb_raw "row1" "[{\"a\": 1}, {\"b\": 5, \"d\": false}]"]
Expand Down

0 comments on commit 5a0a033

Please sign in to comment.