0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-20 22:12:38 -05:00

[ci] format

This commit is contained in:
matthewp 2022-04-13 12:45:17 +00:00 committed by github-actions[bot]
parent 5acf77dd22
commit 16e0ada70f
3 changed files with 8 additions and 6 deletions

View file

@ -331,7 +331,9 @@ function resolveFlags(flags: Partial<Flags>): CLIFlags {
typeof flags.host === 'string' || typeof flags.host === 'boolean' ? flags.host : undefined, typeof flags.host === 'string' || typeof flags.host === 'boolean' ? flags.host : undefined,
experimentalSsr: typeof flags.experimentalSsr === 'boolean' ? flags.experimentalSsr : undefined, experimentalSsr: typeof flags.experimentalSsr === 'boolean' ? flags.experimentalSsr : undefined,
experimentalIntegrations: experimentalIntegrations:
typeof flags.experimentalIntegrations === 'boolean' ? flags.experimentalIntegrations : undefined, typeof flags.experimentalIntegrations === 'boolean'
? flags.experimentalIntegrations
: undefined,
drafts: typeof flags.drafts === 'boolean' ? flags.drafts : false, drafts: typeof flags.drafts === 'boolean' ? flags.drafts : false,
}; };
} }

View file

@ -9,8 +9,8 @@ describe('Custom Elements', () => {
fixture = await loadFixture({ fixture = await loadFixture({
root: './fixtures/custom-elements/', root: './fixtures/custom-elements/',
experimental: { experimental: {
integrations: true integrations: true,
} },
}); });
await fixture.build(); await fixture.build();
}); });

View file

@ -2,9 +2,9 @@ import * as _ from './utils'
export class Element extends Node { export class Element extends Node {
constructor() { constructor() {
super(); super()
if(_.INTERNALS.has(new.target)) { if (_.INTERNALS.has(new.target)) {
const internals = _.internalsOf(new.target, 'Element', 'localName') const internals = _.internalsOf(new.target, 'Element', 'localName')
_.INTERNALS.set(this, { _.INTERNALS.set(this, {
attributes: {}, attributes: {},