Skip to content

Commit

Permalink
test: updated extend test
Browse files Browse the repository at this point in the history
  • Loading branch information
logaretm committed May 12, 2020
1 parent 473964f commit de9bedf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/core/tests/extend.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ import { extend, validate } from '@vee-validate/core';

test('passing a non-function as the validate method will throw', () => {
expect(() => {
// @ts-ignore
extend('noFn', {
validate: '',
validate: ('' as unknown) as (value: any) => boolean,
});
}).toThrow();
});
Expand Down

0 comments on commit de9bedf

Please sign in to comment.