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/test/assert_test.ts | |
parent | d355382f7040550cb82bab57a4935652fb710e71 (diff) | |
download | dexon-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/test/assert_test.ts')
-rw-r--r-- | packages/assert/test/assert_test.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/assert/test/assert_test.ts b/packages/assert/test/assert_test.ts index b0fa398d6..1d9a34ed9 100644 --- a/packages/assert/test/assert_test.ts +++ b/packages/assert/test/assert_test.ts @@ -183,7 +183,7 @@ describe('Assertions', () => { ); }); }); - describe('#isHttpUrl', () => { + describe('#isWebUri', () => { it('should not throw for valid input', () => { const validInputs = [ 'http://www.google.com', @@ -191,7 +191,7 @@ describe('Assertions', () => { 'https://api.radarrelay.com/0x/v0/', 'https://zeroex.beta.radarrelay.com:8000/0x/v0/', ]; - validInputs.forEach(input => expect(assert.isHttpUrl.bind(assert, variableName, input)).to.not.throw()); + validInputs.forEach(input => expect(assert.isWebUri.bind(assert, variableName, input)).to.not.throw()); }); it('should throw for invalid input', () => { const invalidInputs = [ @@ -205,7 +205,7 @@ describe('Assertions', () => { 'user:password@api.example-relayer.net', '//api.example-relayer.net', ]; - invalidInputs.forEach(input => expect(assert.isHttpUrl.bind(assert, variableName, input)).to.throw()); + invalidInputs.forEach(input => expect(assert.isWebUri.bind(assert, variableName, input)).to.throw()); }); }); describe('#isUri', () => { |