Skip to content

Commit

Permalink
add test for repeated properties in dynamic component
Browse files Browse the repository at this point in the history
  • Loading branch information
lovasoa committed May 19, 2024
1 parent 0436b28 commit 70b90c3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# CHANGELOG.md

## 0.21.0 (unreleased)
## 0.21.0 (2024-05-19)

- `sqlpage.hash_password(NULL)` now returns `NULL` instead of throwing an error. This behavior was changed unintentionally in 0.20.5 and could have broken existing SQLPage websites.
- The [dynamic](https://sql.ophir.dev/documentation.sql?component=dynamic#component) component now supports multiple `properties` attributes. The following is now possible:
Expand Down
6 changes: 6 additions & 0 deletions tests/sql_test_files/it_works_dynamic_repeated_properties.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
-- Checks that we can have a page with a single dynamic component containing multiple children
select 'dynamic' as component,
'{"component":"text"}' as properties,
'{"contents":"Hello, ", "bold":true}' as properties,
'{"component":"text"}' as properties,
'{"contents":"It works !", "bold":true}' as properties;

0 comments on commit 70b90c3

Please sign in to comment.