Skip to content

Commit 3f68aa6

Browse files
committed
code formating
Signed-off-by: Antonio Mendoza Pérez <antmendoza@gmail.com>
1 parent 53426e4 commit 3f68aa6

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/lib/utils.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ export const validate = (typeName: string, data: any): boolean => {
1212

1313
if (!validateFn) {
1414
throw Error(`Validate function not defined for type [${typeName}]`);
15-
};
16-
15+
}
1716

1817
if (!validateFn(data)) {
1918
console.warn(validateFn.errors);

tests/lib/utils.spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ describe('validate', () => {
1010
});
1111

1212
it('should throws an error if validator not found', () => {
13-
expect( () => validate('ValidatorNotDefined', {} )).toThrowError();
13+
expect(() => validate('ValidatorNotDefined', {})).toThrowError();
1414
});
15-
1615
});

0 commit comments

Comments
 (0)