Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit 586fba2

Browse files
authored
Merge pull request #535 from ipfs/make-invalid-url-invalid
fix: make invalid url actually invalid
2 parents b0b84aa + 30a84fb commit 586fba2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/files-regular/add-from-url.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ module.exports = (createCommon, options) => {
120120
})
121121

122122
it('should not add from an invalid url', (done) => {
123-
ipfs.addFromURL('http://invalid', (err, result) => {
123+
ipfs.addFromURL('123http://invalid', (err, result) => {
124124
expect(err).to.exist()
125125
expect(result).to.not.exist()
126126
done()

0 commit comments

Comments
 (0)