Skip to content

Commit

Permalink
Make sure we use FeathesrTypeBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
daffl committed Apr 12, 2023
1 parent 09a3474 commit c53fd12
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/typebox/test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
getValidator,
ObjectIdSchema
} from '../src'
import { FeathersTypeBuilder } from '../src'

describe('@feathersjs/schema/typebox', () => {
describe('querySyntax', () => {
Expand Down Expand Up @@ -100,6 +101,10 @@ describe('@feathersjs/schema/typebox', () => {
assert.ok(validated)
})

it('exports custom type builder', () => {
assert.ok(Type instanceof FeathersTypeBuilder)
})

// Test ObjectId validation
it('ObjectId', async () => {
const schema = Type.Object({
Expand Down

0 comments on commit c53fd12

Please sign in to comment.