Skip to content

Commit 5f3085b

Browse files
matthewpastrobot-houston
authored andcommitted
[ci] format
1 parent e030bd0 commit 5f3085b

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

packages/astro/src/runtime/server/render/server-islands.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ export function containsServerDirective(props: Record<string | number, any>) {
1818
return 'server:component-directive' in props;
1919
}
2020

21-
22-
2321
function createSearchParams(
2422
encryptedComponentExport: string,
2523
encryptedProps: string,

packages/astro/test/astro-directives.test.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ describe('Directives', async () => {
3434
assert.equal($(script).toString().includes('const dashCase = "bar"'), true);
3535
} else if (i < 4) {
3636
// Closing script tags in strings are escaped
37-
assert.equal($(script).toString().includes('const bar = "\\u003cscript>bar\\u003c/script>"'), true);
37+
assert.equal(
38+
$(script).toString().includes('const bar = "\\u003cscript>bar\\u003c/script>"'),
39+
true,
40+
);
3841
} else {
3942
// Vars with undefined values are handled
4043
assert.equal($(script).toString().includes('const undef = undefined'), true);

0 commit comments

Comments
 (0)