Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AGalabov committed Dec 6, 2024
1 parent 92cc450 commit 3713bd7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/modifiers/custom.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import { z } from 'zod';
import { expectSchema } from '../lib/helpers';

// File as a class is not available on older node versions
// so I am defining this just for testing purposes
class File {}

describe('custom', () => {
it('generates OpenAPI schema for custom type', () => {
const FileSchema = z
Expand Down
4 changes: 4 additions & 0 deletions spec/modifiers/instanceof.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import { z } from 'zod';
import { expectSchema } from '../lib/helpers';

// File as a class is not available on older node versions
// so I am defining this just for testing purposes
class File {}

describe('instanceof', () => {
it('generates OpenAPI schema for instanceof type', () => {
const FileSchema = z
Expand Down

0 comments on commit 3713bd7

Please sign in to comment.