diff options
Diffstat (limited to 'packages/astro/test/custom-assets-name.nodetest.js')
-rw-r--r-- | packages/astro/test/custom-assets-name.nodetest.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/packages/astro/test/custom-assets-name.nodetest.js b/packages/astro/test/custom-assets-name.nodetest.js new file mode 100644 index 000000000..7f101cbf1 --- /dev/null +++ b/packages/astro/test/custom-assets-name.nodetest.js @@ -0,0 +1,22 @@ +import assert from 'node:assert/strict'; +import { describe, before, it } from 'node:test'; +import { loadFixture } from './test-utils.js'; + +describe('custom the assets name function', () => { + /** @type {import('./test-utils').Fixture} */ + let fixture; + + before(async () => { + fixture = await loadFixture({ + root: './fixtures/custom-assets-name/', + output: 'server', + }); + await fixture.build(); + }); + + it('It cant find this file cause the node throws an error if the users custom a path that includes the folder path', async () => { + const csslength = await fixture.readFile('client/assets/css/a.css'); + /** @type {Set<string>} */ + assert.equal(!!csslength, true); + }); +}); |