import { test, expect } from 'vitest'
import * as z from '../../index'
import * as assert from '../../../assertions.utils.test'

test('void', () => {
  const v = z.void()
  v.parse(undefined)

  expect(() => v.parse(null)).toThrow()
  expect(() => v.parse('')).toThrow()

  type v = z.infer<typeof v>
  assert.assertEqual<v, void>(true)
})
