From 1a938dec77ec04ed7a6d99d9d61f9272111fc4c6 Mon Sep 17 00:00:00 2001 From: Jan-Paul Kleemans Date: Mon, 20 Nov 2023 16:49:22 +0100 Subject: [PATCH] Allow data- and relative URL --- cypress/integration/spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/integration/spec.js b/cypress/integration/spec.js index 081e52c..8f19590 100644 --- a/cypress/integration/spec.js +++ b/cypress/integration/spec.js @@ -42,7 +42,7 @@ describe('Vite SVG Loader', () => { }) it('supports ?url param', () => { - cy.get('#url').contains(/^data:image\/svg\+xml/) + cy.get('#url').contains(/^data:image\/svg\+xml|^\/assets\/test\..+\.svg/) }) it('supports ?raw param', () => {