diff options
author | Brandon Millman <brandon@0xproject.com> | 2018-03-09 00:49:21 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-09 00:49:21 +0800 |
commit | 7440b87596bc3925d3b980aef2a9e027936ab441 (patch) | |
tree | 733823e0a7de5ab78ce51758ad64a31ce3b215f6 /packages/assert/src/index.ts | |
parent | aaa7affa46450bb48639e9b90c2a2e8adb28826c (diff) | |
parent | 583a17d6279e819ab5e37f330500444881e873d7 (diff) | |
download | dexon-0x-contracts-7440b87596bc3925d3b980aef2a9e027936ab441.tar.gz dexon-0x-contracts-7440b87596bc3925d3b980aef2a9e027936ab441.tar.zst dexon-0x-contracts-7440b87596bc3925d3b980aef2a9e027936ab441.zip |
Merge pull request #412 from 0xProject/feature/sra-reporter
Implement initial sra-report command line tool
Diffstat (limited to 'packages/assert/src/index.ts')
-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)); |