@@ -52,6 +52,10 @@ exports['test newURI(web+ipfs://<path>)'] = function (assert) {
52
52
var newURI = webIpfsHandler . newURI ( 'web+ipfs://' + ipfsPath , 'utf8' , null )
53
53
assert . equal ( newURI . spec , pubGwUri . spec + 'ipfs/' + ipfsPath , 'newURI spec' )
54
54
}
55
+ exports [ 'test newURI(ipfs:/ipfs/<path>)' ] = function ( assert ) {
56
+ var newURI = ipfsHandler . newURI ( 'ipfs:/ipfs/' + ipfsPath , 'utf8' , null )
57
+ assert . equal ( newURI . spec , pubGwUri . spec + 'ipfs/' + ipfsPath , 'newURI spec' )
58
+ }
55
59
56
60
exports [ 'test newURI(ipns:<path>)' ] = function ( assert ) {
57
61
var newURI = ipnsHandler . newURI ( 'ipns:' + ipnsPath , 'utf8' , null )
@@ -69,6 +73,10 @@ exports['test newURI(web+ipns://<path>)'] = function (assert) {
69
73
var newURI = webIpnsHandler . newURI ( 'web+ipns://' + ipnsPath , 'utf8' , null )
70
74
assert . equal ( newURI . spec , pubGwUri . spec + 'ipns/' + ipnsPath , 'newURI spec' )
71
75
}
76
+ exports [ 'test newURI(ipns:/ipns/<path>)' ] = function ( assert ) {
77
+ var newURI = ipnsHandler . newURI ( 'ipns:/ipns/' + ipnsPath , 'utf8' , null )
78
+ assert . equal ( newURI . spec , pubGwUri . spec + 'ipns/' + ipnsPath , 'newURI spec' )
79
+ }
72
80
73
81
// The fs:<resource> protocol for easier interoperability with legacy applications
74
82
// It is a simple prefix to the canonical UNIX-like IPFS address
0 commit comments