summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar matthewp <matthewp@users.noreply.github.com> 2022-05-26 14:20:02 +0000
committerGravatar github-actions[bot] <github-actions[bot]@users.noreply.github.com> 2022-05-26 14:20:02 +0000
commitd92d28317f221f4cccdd5e83365675a256944fd3 (patch)
tree72169df9c2e9dee0a16418083aa9ef1350658156
parent79b9ebc83ab7e190bd2894338e51e7f3f41e04d2 (diff)
downloadastro-d92d28317f221f4cccdd5e83365675a256944fd3.tar.gz
astro-d92d28317f221f4cccdd5e83365675a256944fd3.tar.zst
astro-d92d28317f221f4cccdd5e83365675a256944fd3.zip
[ci] format
Diffstat (limited to '')
-rw-r--r--packages/astro/test/static-build-page-dist-url.test.js36
1 files changed, 19 insertions, 17 deletions
diff --git a/packages/astro/test/static-build-page-dist-url.test.js b/packages/astro/test/static-build-page-dist-url.test.js
index 0d5bd09aa..59adbc57c 100644
--- a/packages/astro/test/static-build-page-dist-url.test.js
+++ b/packages/astro/test/static-build-page-dist-url.test.js
@@ -5,30 +5,32 @@ describe('Static build: pages routes have distURL', () => {
/** @type {import('./test-utils').Fixture} */
let fixture;
/** @type {RouteData[]} */
- let checkRoutes
+ let checkRoutes;
before(async () => {
const fixture = await loadFixture({
root: './fixtures/astro pages/',
- integrations: [{
- name: '@astrojs/distURL',
- hooks: {
- 'astro:build:done': ({ routes }) => {
- checkRoutes = routes.filter(p => p.type === 'page')
+ integrations: [
+ {
+ name: '@astrojs/distURL',
+ hooks: {
+ 'astro:build:done': ({ routes }) => {
+ checkRoutes = routes.filter((p) => p.type === 'page');
+ },
},
},
- }]
+ ],
});
await fixture.build();
- })
+ });
it('Pages routes have distURL', async () => {
- expect(checkRoutes).to.have.lengthOf.above(0, 'Pages not found: build end hook not being called')
- checkRoutes.forEach(p => expect(p).to.have.property(
- 'distURL'
- ).that.is.a(
- 'URL', `${p.pathname} doesn't include distURL`
- ));
+ expect(checkRoutes).to.have.lengthOf.above(
+ 0,
+ 'Pages not found: build end hook not being called'
+ );
+ checkRoutes.forEach((p) =>
+ expect(p)
+ .to.have.property('distURL')
+ .that.is.a('URL', `${p.pathname} doesn't include distURL`)
+ );
});
});
-
-
-