Skip to content

Commit d51dec5

Browse files
committed
Format code
1 parent 5b24757 commit d51dec5

2 files changed

Lines changed: 11 additions & 7 deletions

File tree

packages/astro/src/core/build/plugins/plugin-analyzer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export function vitePluginAnalyzer(
5656
if (isPropagatedAsset(parentInfo.id)) {
5757
for (const hid of hoistedScripts) {
5858
if (!internals.propagatedScriptsMap.has(parentInfo.id)) {
59-
internals.propagatedScriptsMap.set(parentInfo.id, new Set())
59+
internals.propagatedScriptsMap.set(parentInfo.id, new Set());
6060
}
6161
internals.propagatedScriptsMap.get(parentInfo.id)?.add(hid);
6262
}

packages/astro/test/content-collections.test.js

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -154,12 +154,16 @@ describe('Content Collections', () => {
154154
// `experimental.directRenderScript` so this optimization isn't a priority at the moment.
155155
assert.equal($('script').length, 2);
156156
// Read the scripts' content
157-
const scripts = $('script').map((_, el) => $(el).attr('src')).toArray()
158-
const scriptsCode = (await Promise.all(scripts.map(async (src) => await fixture.readFile(src)))).join('\n')
159-
assert.match(scriptsCode,/ScriptCompA/)
160-
assert.match(scriptsCode,/ScriptCompB/)
161-
})
162-
})
157+
const scripts = $('script')
158+
.map((_, el) => $(el).attr('src'))
159+
.toArray();
160+
const scriptsCode = (
161+
await Promise.all(scripts.map(async (src) => await fixture.readFile(src)))
162+
).join('\n');
163+
assert.match(scriptsCode, /ScriptCompA/);
164+
assert.match(scriptsCode, /ScriptCompB/);
165+
});
166+
});
163167
});
164168

165169
const blogSlugToContents = {

0 commit comments

Comments
 (0)