summaryrefslogtreecommitdiff
path: root/packages/astro/test/lit-element.test.js
diff options
context:
space:
mode:
authorGravatar Elliott Marquez <5981958+e111077@users.noreply.github.com> 2021-12-06 11:23:09 -0800
committerGravatar GitHub <noreply@github.com> 2021-12-06 13:23:09 -0600
commitd9d3906a3c215436a1e3d2ab64e63d23a772e059 (patch)
tree8152ceb1c842160439596039574e541b5ee990aa /packages/astro/test/lit-element.test.js
parentc0f29bcf8c2b943e4a8101cae4f893b13a4b832c (diff)
downloadastro-d9d3906a3c215436a1e3d2ab64e63d23a772e059.tar.gz
astro-d9d3906a3c215436a1e3d2ab64e63d23a772e059.tar.zst
astro-d9d3906a3c215436a1e3d2ab64e63d23a772e059.zip
test(lit): add reflected property tests (#2116)
Diffstat (limited to '')
-rw-r--r--packages/astro/test/lit-element.test.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/astro/test/lit-element.test.js b/packages/astro/test/lit-element.test.js
index dd3dda5d6..bbd0c78ac 100644
--- a/packages/astro/test/lit-element.test.js
+++ b/packages/astro/test/lit-element.test.js
@@ -50,6 +50,12 @@ describe('LitElement test', () => {
expect($('my-element').attr('obj')).to.equal(undefined);
expect($('my-element').attr('bool')).to.equal(undefined);
expect($('my-element').attr('str')).to.equal(undefined);
+
+ // test 7: reflected reactive props are rendered as attributes
+ expect($('my-element').attr('reflectedbool')).to.equal('');
+ expect($('my-element').attr('reflected-str')).to.equal('default reflected string');
+ expect($('my-element').attr('reflected-str-prop')).to.equal('initialized reflected');
+
});
// Skipped because not supported by Lit