Skip to content

Commit d9dea85

Browse files
committed
chore: tweak test cases
1 parent 5df8662 commit d9dea85

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

packages/@vuepress/plugin-palette/__tests__/node/preparePaletteFile.spec.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@ import { createApp } from '@vuepress/core'
22
import { preparePaletteFile, presetOptions } from '@vuepress/plugin-palette'
33
import { fs, path } from '@vuepress/utils'
44

5-
const source = path.resolve(__dirname, 'fake-source')
6-
const temp = path.resolve(__dirname, '../__fixtures__/.temp')
75
const app = createApp({
8-
source,
9-
temp,
6+
source: path.resolve(__dirname, 'fake-source'),
7+
temp: path.resolve(__dirname, '../__fixtures__/.temp'),
108
})
119

1210
describe('plugin-palette > node > preparePaletteFile', () => {

packages/@vuepress/plugin-palette/__tests__/node/prepareStyleFile.spec.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@ import { createApp } from '@vuepress/core'
22
import { prepareStyleFile, presetOptions } from '@vuepress/plugin-palette'
33
import { fs, path } from '@vuepress/utils'
44

5-
const source = path.resolve(__dirname, 'fake-source')
6-
const temp = path.resolve(__dirname, '../__fixtures__/.temp')
75
const app = createApp({
8-
source,
9-
temp,
6+
source: path.resolve(__dirname, 'fake-source'),
7+
temp: path.resolve(__dirname, '../__fixtures__/.temp'),
108
})
119

1210
describe('plugin-palette > node > prepareStyleFile', () => {

packages/@vuepress/plugin-register-components/__tests__/node/prepareClientAppEnhanceFile.spec.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@ import { createApp } from '@vuepress/core'
22
import { prepareClientAppEnhanceFile } from '@vuepress/plugin-register-components'
33
import { fs, path } from '@vuepress/utils'
44

5-
const source = path.resolve(__dirname, 'fake-source')
6-
const temp = path.resolve(__dirname, '../__fixtures__/.temp')
75
const app = createApp({
8-
source,
9-
temp,
6+
source: path.resolve(__dirname, 'fake-source'),
7+
temp: path.resolve(__dirname, '../__fixtures__/.temp'),
108
})
119
let identifier = 0
1210

0 commit comments

Comments
 (0)