Commit Graph

25 Commits

Author SHA1 Message Date
Tom Alexander
97fbde6304
Add a test for partials referencing paths. 2020-05-09 15:20:14 -04:00
Tom Alexander
ec321a17ca
Adding a v0 to partial_jump_around_one to prove that the partial parameters are inserted 1 level above the current context. 2020-05-08 18:48:33 -04:00
Tom Alexander
50c03b4f0f
Expanding the partial jump around tests. 2020-05-08 18:34:49 -04:00
Tom Alexander
f47b91f8e7
Starting a more complicated test for partials to investigate scoping. 2020-05-08 18:19:33 -04:00
Tom Alexander
7087157ed3
Add partial test for walking up context vs parameters 2020-05-07 19:28:22 -04:00
Tom Alexander
0fcb70927c
Add an initial test of partial parameters 2020-05-07 19:12:45 -04:00
Tom Alexander
b45688351e
Rendering a reference appears to do a truthiness check because false renders an empty string despite rendering as "false" in an array element. 2020-05-06 20:13:33 -04:00
Tom Alexander
0f47000a9b
Add support for the exists tag. 2020-05-06 19:10:09 -04:00
Tom Alexander
c3fe7b47af
Added a test for backtracking.
DustJS appears to not do any backtracking.
2020-05-03 16:49:34 -04:00
Tom Alexander
2b6c3990a9
Add test for a multi-step walk into a parent context.
This test proves that the dynamic scoping does not add the intermediate steps when doing a multi-step walk.
2020-05-03 16:32:29 -04:00
Tom Alexander
45facfed0d
Improve the walk up test to prove that DustJS is doing dynamic scoping, not lexical scoping. 2020-05-03 16:13:29 -04:00
Tom Alexander
9adb88d132
Added a test case for walking up the context 2020-05-03 15:47:21 -04:00
Tom Alexander
e957caf386
Render the else block in sections if the path does not exist or if the path can't be walked.
This fixes all existing compliance tests.
2020-05-03 15:29:02 -04:00
Tom Alexander
31029bf50b
Add a test for whitespace inside the template.
This is similar to the surrounding whitespace test but for whitespace inside of a tag as opposed to before/after the first element of the template.
2020-05-02 19:30:23 -04:00
Tom Alexander
3cfc294e93
Add an array-context test case for the sections test 2020-04-28 20:47:26 -04:00
Tom Alexander
f0a69d12b9
First attempt at a section render function.
Running into an issue with generics vs dynamic references.
2020-04-28 20:46:29 -04:00
Tom Alexander
41ad6179d1
Parse self-references and add a test for sections. 2020-04-28 19:02:43 -04:00
Tom Alexander
71181fbd9a
Add a test case for comments 2020-04-12 22:10:16 -04:00
Tom Alexander
d813a66610
Add test for booleans and null 2020-04-12 21:42:08 -04:00
Tom Alexander
7a28e6a9d4
Handle rendering json arrays and objects 2020-04-12 21:40:34 -04:00
Tom Alexander
24d2c1831c
Handle missing references 2020-04-12 21:26:23 -04:00
Tom Alexander
4856fb6d11
Support passing args to the dockerized test runner 2020-04-12 15:47:38 -04:00
Tom Alexander
8435028a55
Dockerized tests are now working and added a flag to toggle showing the test case diff. 2020-04-12 15:24:38 -04:00
Tom Alexander
aa7155d467
Correctly counting test failures 2020-04-12 14:44:53 -04:00
Tom Alexander
db575d145e
Initial attempt at docker compliance tests. 2020-04-12 14:37:54 -04:00