From 786d9211be3fdeaf342b8ce9434a3521b5dddbcf Mon Sep 17 00:00:00 2001 From: Julien Date: Wed, 18 Dec 2024 23:24:08 +0100 Subject: [PATCH] test: update outdated snapshots --- tests/configure.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/configure.spec.ts b/tests/configure.spec.ts index 635d0a2..26c44cb 100644 --- a/tests/configure.spec.ts +++ b/tests/configure.spec.ts @@ -246,7 +246,7 @@ test.group('Frameworks | SSR', (group) => { * Data that should be shared with all rendered pages */ sharedData: { - errors: (ctx) => ctx.session?.flashMessages.get('errors'), + errors: (ctx) => ctx.inertia.always(() => ctx.session?.flashMessages.get('errors')), }, /** @@ -299,7 +299,7 @@ test.group('Frameworks | SSR', (group) => { * Data that should be shared with all rendered pages */ sharedData: { - errors: (ctx) => ctx.session?.flashMessages.get('errors'), + errors: (ctx) => ctx.inertia.always(() => ctx.session?.flashMessages.get('errors')), }, /** @@ -352,7 +352,7 @@ test.group('Frameworks | SSR', (group) => { * Data that should be shared with all rendered pages */ sharedData: { - errors: (ctx) => ctx.session?.flashMessages.get('errors'), + errors: (ctx) => ctx.inertia.always(() => ctx.session?.flashMessages.get('errors')), }, /**