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 72602274b9be..f1974bd27deb 100644 --- a/packages/astro/test/static-build-page-dist-url.test.js +++ b/packages/astro/test/static-build-page-dist-url.test.js @@ -25,7 +25,9 @@ describe('Static build: pages routes have distURL', () => { it('Pages routes have distURL', async () => { assert.equal(checkRoutes.length > 0, true, 'Pages not found: build end hook not being called'); checkRoutes.forEach((p) => { - assert.equal(p.distURL instanceof URL, true, `${p.pathname} doesn't include distURL`); + p.distURL.forEach((distURL) => { + assert.equal(distURL instanceof URL, true, `${p.pathname} doesn't include distURL`); + }) }); }); });