diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-03-06 07:24:55 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-03-06 07:24:55 +0800 |
commit | 08ab81c54c1e845a4239648e8cea65a930fcc99d (patch) | |
tree | 4ac86f7f4b2d4a9dff5ab72ad90983203bf0d11b /packages/assert/src | |
parent | d355382f7040550cb82bab57a4935652fb710e71 (diff) | |
download | dexon-sol-tools-08ab81c54c1e845a4239648e8cea65a930fcc99d.tar.gz 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.ts | 4 |
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)); |