Skip to content

Commit

Permalink
chore: cleanup spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed May 11, 2022
1 parent 33cca87 commit e4b648d
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 25 deletions.
4 changes: 2 additions & 2 deletions packages/vite/src/node/__tests__/plugins/css.spec.ts
Expand Up @@ -197,12 +197,12 @@ describe('hoist @ rules', () => {
/*
@import "bla";
*/
/*
@charset "utf-8";
@import "bar";
*/
`
)
})
Expand Down
Expand Up @@ -40,15 +40,15 @@ test.runIf(isBuild)(
(code) =>
`import { useState } from 'react'
import Child from './Child'
function App() {
return (
<div className="App">
<Child />
</div>
)
}
export default App
`
)
Expand Down
42 changes: 21 additions & 21 deletions playground/vue-sourcemap/__tests__/serve.spec.ts
Expand Up @@ -31,11 +31,11 @@ describe.runIf(isServe)('serve:vue-sourcemap', () => {
"<template>
<p>&lt;js&gt;</p>
</template>
<script>
console.log('script')
</script>
<script setup>
console.log('setup')
</script>
Expand All @@ -60,11 +60,11 @@ describe.runIf(isServe)('serve:vue-sourcemap', () => {
"<template>
<p>&lt;ts&gt;</p>
</template>
<script lang=\\"ts\\">
console.log('ts script')
</script>
<script lang=\\"ts\\" setup>
console.log('ts setup')
</script>
Expand All @@ -91,25 +91,25 @@ describe.runIf(isServe)('serve:vue-sourcemap', () => {
<p class=\\"css-scoped\\">&lt;css&gt; scoped</p>
<p class=\\"css-scoped-nested\\">&lt;css&gt; scoped with nested</p>
</template>
<style>
.css {
color: red;
}
</style>
<style module>
.css-module {
color: red;
}
</style>
<style scoped>
.css-scoped {
color: red;
}
</style>
<style scoped>
.css-scoped-nested {
color: red;
Expand Down Expand Up @@ -142,25 +142,25 @@ describe.runIf(isServe)('serve:vue-sourcemap', () => {
<p class=\\"css-scoped\\">&lt;css&gt; scoped</p>
<p class=\\"css-scoped-nested\\">&lt;css&gt; scoped with nested</p>
</template>
<style>
.css {
color: red;
}
</style>
<style module>
.css-module {
color: red;
}
</style>
<style scoped>
.css-scoped {
color: red;
}
</style>
<style scoped>
.css-scoped-nested {
color: red;
Expand Down Expand Up @@ -193,25 +193,25 @@ describe.runIf(isServe)('serve:vue-sourcemap', () => {
<p class=\\"css-scoped\\">&lt;css&gt; scoped</p>
<p class=\\"css-scoped-nested\\">&lt;css&gt; scoped with nested</p>
</template>
<style>
.css {
color: red;
}
</style>
<style module>
.css-module {
color: red;
}
</style>
<style scoped>
.css-scoped {
color: red;
}
</style>
<style scoped>
.css-scoped-nested {
color: red;
Expand Down Expand Up @@ -241,7 +241,7 @@ describe.runIf(isServe)('serve:vue-sourcemap', () => {
"<template>
<p class=\\"sass\\">&lt;sass&gt;</p>
</template>
<style lang=\\"sass\\">
.sass
color: red
Expand Down Expand Up @@ -271,10 +271,10 @@ describe.runIf(isServe)('serve:vue-sourcemap', () => {
<p class=\\"sass-with-import\\">&lt;sass&gt; with import</p>
<p class=\\"sass-with-import-imported\\">&lt;sass&gt; with import (imported)</p>
</template>
<style lang=\\"sass\\">
@import './sassWithImportImported'
.sass-with-import
color: red
</style>
Expand All @@ -298,7 +298,7 @@ describe.runIf(isServe)('serve:vue-sourcemap', () => {
"<template>
<p class=\\"less\\">&lt;less&gt; with additionalData</p>
</template>
<style lang=\\"less\\">
.less {
color: @color;
Expand Down Expand Up @@ -346,7 +346,7 @@ describe.runIf(isServe)('serve:vue-sourcemap', () => {
color: red
",
"@import './src-import-imported'
.src-import-sass
color: red
",
Expand Down

0 comments on commit e4b648d

Please sign in to comment.