From 5b1e3c5fb0d503ab51d1697d68c62b0a75e734bc Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Mon, 25 May 2020 19:30:30 -0400 Subject: [PATCH] Had to sort the input to the explicit_context_setting test because dustjs leaves the original order but serde_json sorts the keys. --- .../explicit_context_setting/input1.json | 60 +++++++++---------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/js/test_cases/explicit_context_setting/input1.json b/js/test_cases/explicit_context_setting/input1.json index 4bc983b..48c86c4 100644 --- a/js/test_cases/explicit_context_setting/input1.json +++ b/js/test_cases/explicit_context_setting/input1.json @@ -1,56 +1,56 @@ { - "some_global": "dog", - "loop": [ - { - "person": { - "name": "Alice" - }, - "friend": "Bob" - }, - { - "person": { - "name": "Bob" - }, - "friend": "Chris" - }, - { - "person": { - "name": "Chris" - }, - "friend": "Alice" + "block": { + "message": { + "contents": "Explicit contexts are evaluated in the context of the block." } - ], - "explicit": { - "pet": "cat" }, + "contents": "Explicit contexts are evaluated in the global context.", "deep_explicit": { "explicit": { "pet": "cat" } }, "empty_array": [], - "block": { - "message": { - "contents": "Explicit contexts are evaluated in the context of the block." - } + "explicit": { + "pet": "cat" }, "inline_partial": { "message": { "contents": "Explicit contexts are evaluated in the context of the inline partial." } }, - "contents": "Explicit contexts are evaluated in the global context.", + "loop": [ + { + "friend": "Bob", + "person": { + "name": "Alice" + } + }, + { + "friend": "Chris", + "person": { + "name": "Bob" + } + }, + { + "friend": "Alice", + "person": { + "name": "Chris" + } + } + ], "partial_context": { "block": { "message": { "contents": "Explicit contexts are evaluated in the context of the block inside the partial context." } }, + "contents": "Explicit contexts are evaluated in the global context inside the partial context.", "inline_partial": { "message": { "contents": "Explicit contexts are evaluated in the context of the inline partial inside the partial context." } - }, - "contents": "Explicit contexts are evaluated in the global context inside the partial context." - } + } + }, + "some_global": "dog" }