Skip to content

Commit 8c495e8

Browse files
committed
style: minor refactor
1 parent 38f796e commit 8c495e8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/zod.spec.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,12 +221,13 @@ test.group('Zod validation adaptater', () => {
221221
debug: true,
222222
})
223223

224-
// Test without variable
225224
await fs.create(ENV_FILENAME, '')
225+
226226
// @ts-ignore
227227
const { define } = await plugin.config({ root: fs.basePath }, viteEnvConfig)
228-
assert.equal(define['import.meta.env.VITE_OPTIONAL_ZOD'], '"d"')
229228
const logs = plugin.ui.logger.getLogs()
229+
230+
assert.equal(define['import.meta.env.VITE_OPTIONAL_ZOD'], '"d"')
230231
assert.deepEqual(logs[0].message, 'cyan([vite-plugin-validate-env]) debug process.env content')
231232
assert.deepInclude(logs[1].message, 'cyan(VITE_OPTIONAL_ZOD): d')
232233
})

0 commit comments

Comments
 (0)