From 3a957d2df9426ebb0b5774820bd7d8d540314fdb Mon Sep 17 00:00:00 2001 From: baiwusanyu-c <740132583@qq.com> Date: Thu, 4 May 2023 13:51:35 +0800 Subject: [PATCH] test: update snap --- .../handle-inject-css.spec.ts.snap | 3 +++ .../handle-variable.spec.ts.snap | 20 +++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 packages/core/runtime/__test__/__snapshots__/handle-inject-css.spec.ts.snap create mode 100644 packages/core/runtime/__test__/__snapshots__/handle-variable.spec.ts.snap diff --git a/packages/core/runtime/__test__/__snapshots__/handle-inject-css.spec.ts.snap b/packages/core/runtime/__test__/__snapshots__/handle-inject-css.spec.ts.snap new file mode 100644 index 0000000..30f2ed3 --- /dev/null +++ b/packages/core/runtime/__test__/__snapshots__/handle-inject-css.spec.ts.snap @@ -0,0 +1,3 @@ +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html + +exports[`handle inject css > handleInjectCss: basic 1`] = `MagicString {}`; diff --git a/packages/core/runtime/__test__/__snapshots__/handle-variable.spec.ts.snap b/packages/core/runtime/__test__/__snapshots__/handle-variable.spec.ts.snap new file mode 100644 index 0000000..cc2e388 --- /dev/null +++ b/packages/core/runtime/__test__/__snapshots__/handle-variable.spec.ts.snap @@ -0,0 +1,20 @@ +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html + +exports[`handle variable > handleVBindVariable: server is false 1`] = ` +Set { + { + "content": "#foo{ + color: v-bind-m(sassColor); + background: #ffebf8; + width: 200px; + height: 30px; +} +p { + color: v-bind-m(color); +} +", + "lang": "css", + "styleTagIndex": 0, + }, +} +`;