Skip to content

Commit

Permalink
refactor: use size instead of length for validation function.
Browse files Browse the repository at this point in the history
- Using property length conflicts with function.length when merging
  • Loading branch information
emyann committed Oct 16, 2019
1 parent 3316221 commit 3108dd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/validation/reporter.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ describe('Reporter', () => {
const schema = createSchema<T, S>({
t1: {
fn: value => value.s1,
validation: Validation.string().length(LENGTH)
validation: Validation.string().size(LENGTH)
}
});
const result = morphism(schema, { s1: 'aaa' });
Expand Down

0 comments on commit 3108dd0

Please sign in to comment.