diff options
Diffstat (limited to 'packages/integrations/image/test/no-alt-text-picture-ssg.test.js')
-rw-r--r-- | packages/integrations/image/test/no-alt-text-picture-ssg.test.js | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/packages/integrations/image/test/no-alt-text-picture-ssg.test.js b/packages/integrations/image/test/no-alt-text-picture-ssg.test.js deleted file mode 100644 index db0c5629f..000000000 --- a/packages/integrations/image/test/no-alt-text-picture-ssg.test.js +++ /dev/null @@ -1,24 +0,0 @@ -import { expect } from 'chai'; -import { loadFixture } from './test-utils.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('SSG picture without alt text', function () { - before(async () => { - fixture = await loadFixture({ root: './fixtures/no-alt-text-picture/' }); - }); - - it('throws during build', async () => { - try { - await fixture.build(); - } catch (err) { - expect(err.message).to.equal(errorMessage); - return; - } - expect.fail(0, 1, 'Exception not thrown'); - }); -}); |