aboutsummaryrefslogtreecommitdiffstats
path: root/packages/assert/src
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-03-06 07:24:55 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-03-06 07:24:55 +0800
commit08ab81c54c1e845a4239648e8cea65a930fcc99d (patch)
tree4ac86f7f4b2d4a9dff5ab72ad90983203bf0d11b /packages/assert/src
parentd355382f7040550cb82bab57a4935652fb710e71 (diff)
downloaddexon-sol-tools-08ab81c54c1e845a4239648e8cea65a930fcc99d.tar
dexon-sol-tools-08ab81c54c1e845a4239648e8cea65a930fcc99d.tar.gz
dexon-sol-tools-08ab81c54c1e845a4239648e8cea65a930fcc99d.tar.bz2
dexon-sol-tools-08ab81c54c1e845a4239648e8cea65a930fcc99d.tar.lz
dexon-sol-tools-08ab81c54c1e845a4239648e8cea65a930fcc99d.tar.xz
dexon-sol-tools-08ab81c54c1e845a4239648e8cea65a930fcc99d.tar.zst
dexon-sol-tools-08ab81c54c1e845a4239648e8cea65a930fcc99d.zip
Rename isHttpUrl to isWebUri in assert package
Diffstat (limited to 'packages/assert/src')
-rw-r--r--packages/assert/src/index.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/assert/src/index.ts b/packages/assert/src/index.ts
index 40d083cb6..171909c93 100644
--- a/packages/assert/src/index.ts
+++ b/packages/assert/src/index.ts
@@ -75,9 +75,9 @@ Encountered: ${JSON.stringify(value, null, '\t')}
Validation errors: ${validationResult.errors.join(', ')}`;
this.assert(!hasValidationErrors, msg);
},
- isHttpUrl(variableName: string, value: any): void {
+ isWebUri(variableName: string, value: any): void {
const isValidUrl = !_.isUndefined(validUrl.isWebUri(value));
- this.assert(isValidUrl, this.typeAssertionMessage(variableName, 'http url', value));
+ this.assert(isValidUrl, this.typeAssertionMessage(variableName, 'web uri', value));
},
isUri(variableName: string, value: any): void {
const isValidUri = !_.isUndefined(validUrl.isUri(value));