aboutsummaryrefslogtreecommitdiff
path: root/packages/integrations/react/test/react-component.test.js
diff options
context:
space:
mode:
authorGravatar matthewp <matthewp@users.noreply.github.com> 2023-08-16 17:44:01 +0000
committerGravatar astrobot-houston <fred+astrobot@astro.build> 2023-08-16 17:44:01 +0000
commitfb31ce55d943a88ff0d922cc2e4cca8d98a35eba (patch)
tree912c1554e73fde4ac2777b5f02566416f080bece /packages/integrations/react/test/react-component.test.js
parent16a3fdf93165a1a0404c1db0973871345b2c591b (diff)
downloadastro-fb31ce55d943a88ff0d922cc2e4cca8d98a35eba.tar.gz
astro-fb31ce55d943a88ff0d922cc2e4cca8d98a35eba.tar.zst
astro-fb31ce55d943a88ff0d922cc2e4cca8d98a35eba.zip
[ci] format
Diffstat (limited to 'packages/integrations/react/test/react-component.test.js')
-rw-r--r--packages/integrations/react/test/react-component.test.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/packages/integrations/react/test/react-component.test.js b/packages/integrations/react/test/react-component.test.js
index da7fa018a..43df1d9e4 100644
--- a/packages/integrations/react/test/react-component.test.js
+++ b/packages/integrations/react/test/react-component.test.js
@@ -51,7 +51,9 @@ describe('React Components', () => {
// test 10: Should properly render children passed as props
const islandsWithChildren = $('.with-children');
expect(islandsWithChildren).to.have.lengthOf(2);
- expect($(islandsWithChildren[0]).html()).to.equal($(islandsWithChildren[1]).find('astro-slot').html());
+ expect($(islandsWithChildren[0]).html()).to.equal(
+ $(islandsWithChildren[1]).find('astro-slot').html()
+ );
// test 11: Should generate unique React.useId per island
const islandsWithId = $('.react-use-id');
@@ -103,8 +105,8 @@ describe('React Components', () => {
it('Children are parsed as React components, can be manipulated', async () => {
const html = await fixture.readFile('/children/index.html');
const $ = cheerioLoad(html);
- expect($(".with-children-count").text()).to.equal('2');
- })
+ expect($('.with-children-count').text()).to.equal('2');
+ });
});
if (isWindows) return;