Skip to content

Commit 0316c6d

Browse files
committed
chore(test): fix windows invalid path
1 parent 8e946d8 commit 0316c6d

5 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/postcss/test/__snapshots__/uni-app-x.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

3-
exports[`uni-app-x > app.uvue?vue&type=style&index=0&lang.css > css 1`] = `
3+
exports[`uni-app-x > app.uvue.css > css 1`] = `
44
".mt-_32d43rpx_ {
55
margin-top: 32.43rpx
66
}

packages/postcss/test/fixtures/css/App.uvue?vue&type=style&index=0&lang.css renamed to packages/postcss/test/fixtures/css/App.uvue.css

File renamed without changes.

packages/postcss/test/uni-app-x.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ describe('uni-app-x', () => {
1919
expect(css).toMatchSnapshot('css')
2020
})
2121

22-
it('app.uvue?vue&type=style&index=0&lang.css', async () => {
22+
it('app.uvue.css', async () => {
2323
const styleHandler = createStyleHandler({
2424
uniAppX: true,
2525
})
2626
const { css } = await styleHandler(
2727
await fs.readFile(
28-
path.resolve(__dirname, './fixtures/css/App.uvue?vue&type=style&index=0&lang.css'),
28+
path.resolve(__dirname, './fixtures/css/App.uvue.css'),
2929
'utf8',
3030
),
3131
{

packages/weapp-tailwindcss/test/fixtures/uni-app-x/App.uvue?vue&type=style&index=0&lang.css renamed to packages/weapp-tailwindcss/test/fixtures/uni-app-x/App.uvue.css

File renamed without changes.

packages/weapp-tailwindcss/test/uni-app-x.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ describe('uni-app-x', () => {
8282
expect(code).toMatchSnapshot()
8383

8484
const { css } = await styleHandler(
85-
await getCase('uni-app-x/App.uvue?vue&type=style&index=0&lang.css'),
85+
await getCase('uni-app-x/App.uvue.css'),
8686
{
8787
uniAppX: true,
8888
},

0 commit comments

Comments
 (0)