Skip to content

Commit

Permalink
✅ Add EJS assignment tests
Browse files Browse the repository at this point in the history
  • Loading branch information
skerit committed Apr 27, 2024
1 parent 597ff5f commit 3c93786
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/10-expressions.js
Original file line number Diff line number Diff line change
Expand Up @@ -904,6 +904,10 @@ This should be a converted variable:
`<% obj = {[str_bla]: test.name, [my_obj.a]: "test", ["__" + my_obj.a]: "a2", [my_obj.c + '_' + my_obj.a]: 9} %><%= JSON.stringify(obj) %>`,
`{"bla":"testname","a":"test","__a":"a2","c_a":9}`
],
[
`<% i = 1 %><% i++ %><% i+=1 %><% i*=2 %><% i|=402 %><%= i /* 406 */ %><% i-- %><% i**=2 %>,<%= i /* 164025 */ %><% i >>>= 1 %>,<%= i /* 82012 */ %>`,
`406,164025,82012`
]
];

createTests(tests);
Expand Down

0 comments on commit 3c93786

Please sign in to comment.