summaryrefslogtreecommitdiff
path: root/packages/integrations/image/test/no-alt-text-picture-ssr.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/integrations/image/test/no-alt-text-picture-ssr.test.js')
-rw-r--r--packages/integrations/image/test/no-alt-text-picture-ssr.test.js33
1 files changed, 0 insertions, 33 deletions
diff --git a/packages/integrations/image/test/no-alt-text-picture-ssr.test.js b/packages/integrations/image/test/no-alt-text-picture-ssr.test.js
deleted file mode 100644
index 82ea4daa2..000000000
--- a/packages/integrations/image/test/no-alt-text-picture-ssr.test.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import { expect } from 'chai';
-import { loadFixture } from './test-utils.js';
-import testAdapter from '../../../astro/test/test-adapter.js';
-
-let fixture;
-
-const errorMessage =
- 'The <Picture> component requires you provide alt text. If this picture does not require an accessible label, set alt="".';
-
-/** TODO: enable the test once missing alt text throws an error instead of a console warning */
-describe.skip('SSR picture without alt text', function () {
- before(async () => {
- fixture = await loadFixture({
- root: './fixtures/no-alt-text-picture/',
- adapter: testAdapter({ streaming: false }),
- output: 'server',
- });
- await fixture.build();
- });
-
- it('throws during build', async () => {
- try {
- const app = await fixture.loadTestAdapterApp();
- const request = new Request('http://example.com/');
- const response = await app.render(request);
- await response.text();
- } catch (err) {
- expect(err.message).to.equal(errorMessage);
- return;
- }
- expect.fail(0, 1, 'Exception not thrown');
- });
-});