diff options
Diffstat (limited to 'packages/astro/test/static-build-page-url-format.test.js')
-rw-r--r-- | packages/astro/test/static-build-page-url-format.test.js | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/packages/astro/test/static-build-page-url-format.test.js b/packages/astro/test/static-build-page-url-format.test.js new file mode 100644 index 000000000..2755b3ffb --- /dev/null +++ b/packages/astro/test/static-build-page-url-format.test.js @@ -0,0 +1,24 @@ +import assert from 'node:assert/strict'; +import { before, describe, it } from 'node:test'; +import { loadFixture } from './test-utils.js'; + +describe("Static build - format: 'file'", () => { + let fixture; + + before(async () => { + fixture = await loadFixture({ + root: './fixtures/static-build-page-url-format/', + }); + await fixture.build(); + }); + + it('Builds pages in root', async () => { + const html = await fixture.readFile('/one.html'); + assert.equal(typeof html, 'string'); + }); + + it('Builds pages in subfolders', async () => { + const html = await fixture.readFile('/sub/page.html'); + assert.equal(typeof html, 'string'); + }); +}); |