mirror of
https://github.com/withastro/astro.git
synced 2025-01-20 22:12:38 -05:00
[ci] format
This commit is contained in:
parent
9a59e24e02
commit
e40d8d8357
4 changed files with 36 additions and 36 deletions
|
@ -20,10 +20,10 @@ describe('Astro Scripts before-hydration', () => {
|
|||
hooks: {
|
||||
'astro:config:setup'({ injectScript }) {
|
||||
injectScript('before-hydration', `import '/src/scripts/global.js';`);
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -53,7 +53,7 @@ describe('Astro Scripts before-hydration', () => {
|
|||
});
|
||||
|
||||
it('Is included in the astro-island', async () => {
|
||||
let html = await fixture.readFile('/index.html')
|
||||
let html = await fixture.readFile('/index.html');
|
||||
let $ = cheerio.load(html);
|
||||
expect($('astro-island[before-hydration-url]')).has.a.lengthOf(1);
|
||||
});
|
||||
|
@ -66,7 +66,7 @@ describe('Astro Scripts before-hydration', () => {
|
|||
|
||||
before(async () => {
|
||||
fixture = await loadFixture({
|
||||
root: './fixtures/before-hydration/'
|
||||
root: './fixtures/before-hydration/',
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -121,10 +121,10 @@ describe('Astro Scripts before-hydration', () => {
|
|||
hooks: {
|
||||
'astro:config:setup'({ injectScript }) {
|
||||
injectScript('before-hydration', `import '/src/scripts/global.js';`);
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -171,5 +171,5 @@ describe('Astro Scripts before-hydration', () => {
|
|||
});
|
||||
});
|
||||
});
|
||||
})
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue