@mmit/validate
Advanced tools
Comparing version 0.3.7 to 0.3.8
@@ -32,3 +32,3 @@ export const DEFAULT_IS_TRUE_MESSAGE = () => 'The validated expression is false'; | ||
export const DEFAULT_MATCHES_JWT = (token) => () => `'${token}' is not a valid WebToken!`; | ||
export const DEFAULT_MATCHES_LOCATION = (latitude, longitude) => () => `'${latitude}'/'${longitude}' is no a valid Location`; | ||
export const DEFAULT_MATCHES_LOCATION = (latitude, longitude) => () => `'${latitude}'/'${longitude}' is not a valid Location`; | ||
//# sourceMappingURL=messages.js.map |
{ | ||
"name": "@mmit/validate", | ||
"author": "Mike Mitterer", | ||
"version": "0.3.7", | ||
"version": "0.3.8", | ||
"description": "Object validation for/in TS", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
@@ -75,2 +75,2 @@ type ErrorMessage = () => string; | ||
export const DEFAULT_MATCHES_LOCATION: (latitude: number, longitude: number) => ErrorMessage = (latitude: number, longitude: number): ErrorMessage => (): string => | ||
`'${latitude}'/'${longitude}' is no a valid Location`; | ||
`'${latitude}'/'${longitude}' is not a valid Location`; |
@@ -321,3 +321,3 @@ /* tslint:disable:max-line-length */ | ||
expect((): { } => validate.isLocation(value.latitude, value.longitude)) | ||
.toThrow(new ArgumentError(`'${value.latitude}'/'${value.longitude}' is no a valid Location`)) | ||
.toThrow(new ArgumentError(`'${value.latitude}'/'${value.longitude}' is not a valid Location`)) | ||
}) | ||
@@ -324,0 +324,0 @@ |
Sorry, the diff of this file is not supported yet
1376777