@@ -209,13 +209,13 @@ describe('modifyRequest.onBeforeRequest:', function () {
209
209
state . ipfsNodeType = 'external'
210
210
} )
211
211
it ( 'should be served from custom gateway if {path} points to a FQDN with existing dnslink' , function ( ) {
212
- const request = url2request ( 'https://google.com/ipns/ipfs.git.sexy /index.html?argTest#hashTest' )
212
+ const request = url2request ( 'https://google.com/ipns/en.wikipedia-on- ipfs.org /index.html?argTest#hashTest' )
213
213
// stub the existence of valid dnslink
214
- const fqdn = 'ipfs.git.sexy '
214
+ const fqdn = 'en.wikipedia-on- ipfs.org '
215
215
dnslinkResolver . readDnslinkFromTxtRecord = sinon . stub ( ) . withArgs ( fqdn ) . returns ( '/ipfs/Qmazvovg6Sic3m9igZMKoAPjkiVZsvbWWc8ZvgjjK1qMss' )
216
216
// pretend API is online and we can do dns lookups with it
217
217
state . peerCount = 1
218
- expect ( modifyRequest . onBeforeRequest ( request ) . redirectUrl ) . to . equal ( 'http://localhost:8080/ipns/ipfs.git.sexy /index.html?argTest#hashTest' )
218
+ expect ( modifyRequest . onBeforeRequest ( request ) . redirectUrl ) . to . equal ( 'http://localhost:8080/ipns/en.wikipedia-on- ipfs.org /index.html?argTest#hashTest' )
219
219
} )
220
220
it ( 'should be served from custom gateway if {path} starts with a valid PeerID' , function ( ) {
221
221
const request = url2request ( 'https://google.com/ipns/QmSWnBwMKZ28tcgMFdihD8XS7p6QzdRSGf71cCybaETSsU/index.html?argTest#hashTest' )
@@ -229,13 +229,13 @@ describe('modifyRequest.onBeforeRequest:', function () {
229
229
state . ipfsNodeType = 'embedded'
230
230
} )
231
231
it ( 'should be served from public gateway if {path} points to a FQDN with existing dnslink' , function ( ) {
232
- const request = url2request ( 'https://google.com/ipns/ipfs.git.sexy /index.html?argTest#hashTest' )
232
+ const request = url2request ( 'https://google.com/ipns/en.wikipedia-on- ipfs.org /index.html?argTest#hashTest' )
233
233
// stub the existence of valid dnslink
234
- const fqdn = 'ipfs.git.sexy '
234
+ const fqdn = 'en.wikipedia-on- ipfs.org '
235
235
dnslinkResolver . readDnslinkFromTxtRecord = sinon . stub ( ) . withArgs ( fqdn ) . returns ( '/ipfs/Qmazvovg6Sic3m9igZMKoAPjkiVZsvbWWc8ZvgjjK1qMss' )
236
236
// pretend API is online and we can do dns lookups with it
237
237
state . peerCount = 1
238
- expect ( modifyRequest . onBeforeRequest ( request ) . redirectUrl ) . to . equal ( 'https://ipfs.io/ipns/ipfs.git.sexy /index.html?argTest#hashTest' )
238
+ expect ( modifyRequest . onBeforeRequest ( request ) . redirectUrl ) . to . equal ( 'https://ipfs.io/ipns/en.wikipedia-on- ipfs.org /index.html?argTest#hashTest' )
239
239
} )
240
240
it ( 'should be served from public gateway if {path} starts with a valid PeerID' , function ( ) {
241
241
const request = url2request ( 'https://google.com/ipns/QmSWnBwMKZ28tcgMFdihD8XS7p6QzdRSGf71cCybaETSsU/index.html?argTest#hashTest' )
0 commit comments