From 432256dc6784ec0ecf81306471ede84d674c3c13 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Thu, 11 Apr 2024 14:39:57 +0200 Subject: [PATCH] chore(Toaster): move slot first --- src/runtime/components/Toaster.vue | 4 +- .../__snapshots__/Toast.spec.ts.snap | 120 +++++++++--------- 2 files changed, 62 insertions(+), 62 deletions(-) diff --git a/src/runtime/components/Toaster.vue b/src/runtime/components/Toaster.vue index c0703c33..48b01c74 100644 --- a/src/runtime/components/Toaster.vue +++ b/src/runtime/components/Toaster.vue @@ -77,6 +77,8 @@ function getOffset (index: number) { diff --git a/test/components/__snapshots__/Toast.spec.ts.snap b/test/components/__snapshots__/Toast.spec.ts.snap index b9af86f7..683266a5 100644 --- a/test/components/__snapshots__/Toast.spec.ts.snap +++ b/test/components/__snapshots__/Toast.spec.ts.snap @@ -1,7 +1,10 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`Toast > renders with actions correctly 1`] = ` -"
+" + + +
  1. @@ -22,14 +25,14 @@ exports[`Toast > renders with actions correctly 1`] = `
-
- - -" +
" `; exports[`Toast > renders with avatar correctly 1`] = ` -"
+" + + +
  1. @@ -46,14 +49,14 @@ exports[`Toast > renders with avatar correctly 1`] = `
-
- - -" +
" `; exports[`Toast > renders with class correctly 1`] = ` -"
+" + + +
  1. @@ -71,14 +74,14 @@ exports[`Toast > renders with class correctly 1`] = `
-
- - -" +
" `; exports[`Toast > renders with color correctly 1`] = ` -"
+" + + +
  1. @@ -96,14 +99,14 @@ exports[`Toast > renders with color correctly 1`] = `
-
- - -" +
" `; exports[`Toast > renders with description actions correctly 1`] = ` -"
+" + + +
  1. @@ -126,14 +129,14 @@ exports[`Toast > renders with description actions correctly 1`] = `
-
- - -" +
" `; exports[`Toast > renders with description correctly 1`] = ` -"
+" + + +
  1. @@ -151,14 +154,14 @@ exports[`Toast > renders with description correctly 1`] = `
-
- - -" +
" `; exports[`Toast > renders with icon correctly 1`] = ` -"
+" + + +
  1. @@ -176,14 +179,14 @@ exports[`Toast > renders with icon correctly 1`] = `
-
- - -" +
" `; exports[`Toast > renders with title & description correctly 1`] = ` -"
+" + + +
  1. @@ -203,14 +206,14 @@ exports[`Toast > renders with title & description correctly 1`] = `
-
- - -" +
" `; exports[`Toast > renders with title correctly 1`] = ` -"
+" + + +
  1. @@ -228,14 +231,14 @@ exports[`Toast > renders with title correctly 1`] = `
-
- - -" +
" `; exports[`Toast > renders with type correctly 1`] = ` -"
+" + + +
  1. @@ -253,14 +256,14 @@ exports[`Toast > renders with type correctly 1`] = `
-
- - -" +
" `; exports[`Toast > renders with ui correctly 1`] = ` -"
+" + + +
  1. @@ -278,14 +281,14 @@ exports[`Toast > renders with ui correctly 1`] = `
-
- - -" +
" `; exports[`Toast > renders without close correctly 1`] = ` -"
+" + + +
  1. @@ -299,8 +302,5 @@ exports[`Toast > renders without close correctly 1`] = `
-
- - -" +
" `;