@@ -39,8 +39,8 @@ module.exports = (createCommon, options) => {
3939
4040 const { id : keyId } = await ipfs . key . gen ( 'key-name-default' , { type : 'rsa' , size : 2048 } )
4141
42- await ipfs . name . publish ( path , { 'allow-offline' : true } )
43- await ipfs . name . publish ( `/ipns/${ nodeId } ` , { 'allow-offline' : true , key : 'key-name-default' } )
42+ await ipfs . name . publish ( path , { allowOffline : true } )
43+ await ipfs . name . publish ( `/ipns/${ nodeId } ` , { allowOffline : true , key : 'key-name-default' } )
4444
4545 return expect ( await ipfs . name . resolve ( `/ipns/${ keyId } ` ) )
4646 . to . eq ( `/ipfs/${ path } ` )
@@ -50,7 +50,7 @@ module.exports = (createCommon, options) => {
5050 this . timeout ( 20 * 1000 )
5151 const [ { path } ] = await ipfs . add ( Buffer . from ( 'should resolve a record from cidv1b32' ) )
5252 const { id : peerId } = await ipfs . id ( )
53- await ipfs . name . publish ( path , { 'allow-offline' : true } )
53+ await ipfs . name . publish ( path , { allowOffline : true } )
5454
5555 // Represent Peer ID as CIDv1 Base32
5656 // https://github.com/libp2p/specs/blob/master/RFC/0001-text-peerid-cid.md
@@ -62,7 +62,7 @@ module.exports = (createCommon, options) => {
6262
6363 it ( 'should resolve a record recursive === false' , async ( ) => {
6464 const [ { path } ] = await ipfs . add ( Buffer . from ( 'should resolve a record recursive === false' ) )
65- await ipfs . name . publish ( path , { 'allow-offline' : true } )
65+ await ipfs . name . publish ( path , { allowOffline : true } )
6666 return expect ( await ipfs . name . resolve ( `/ipns/${ nodeId } ` , { recursive : false } ) )
6767 . to . eq ( `/ipfs/${ path } ` )
6868 } )
@@ -74,8 +74,8 @@ module.exports = (createCommon, options) => {
7474
7575 const { id : keyId } = await ipfs . key . gen ( 'key-name' , { type : 'rsa' , size : 2048 } )
7676
77- await ipfs . name . publish ( path , { 'allow-offline' : true } )
78- await ipfs . name . publish ( `/ipns/${ nodeId } ` , { 'allow-offline' : true , key : 'key-name' } )
77+ await ipfs . name . publish ( path , { allowOffline : true } )
78+ await ipfs . name . publish ( `/ipns/${ nodeId } ` , { allowOffline : true , key : 'key-name' } )
7979
8080 return expect ( await ipfs . name . resolve ( `/ipns/${ keyId } ` , { recursive : true } ) )
8181 . to . eq ( `/ipfs/${ path } ` )
@@ -88,16 +88,16 @@ module.exports = (createCommon, options) => {
8888
8989 const { id : keyId } = await ipfs . key . gen ( 'key-name-remainder-default' , { type : 'rsa' , size : 2048 } )
9090
91- await ipfs . name . publish ( path , { 'allow-offline' : true } )
92- await ipfs . name . publish ( `/ipns/${ nodeId } ` , { 'allow-offline' : true , key : 'key-name-remainder-default' } )
91+ await ipfs . name . publish ( path , { allowOffline : true } )
92+ await ipfs . name . publish ( `/ipns/${ nodeId } ` , { allowOffline : true , key : 'key-name-remainder-default' } )
9393
9494 return expect ( await ipfs . name . resolve ( `/ipns/${ keyId } /remainder/file.txt` ) )
9595 . to . eq ( `/ipfs/${ path } /remainder/file.txt` )
9696 } )
9797
9898 it ( 'should resolve a record recursive === false with remainder' , async ( ) => {
9999 const [ { path } ] = await ipfs . add ( Buffer . from ( 'should resolve a record recursive = false with remainder' ) )
100- await ipfs . name . publish ( path , { 'allow-offline' : true } )
100+ await ipfs . name . publish ( path , { allowOffline : true } )
101101 return expect ( await ipfs . name . resolve ( `/ipns/${ nodeId } /remainder/file.txt` , { recursive : false } ) )
102102 . to . eq ( `/ipfs/${ path } /remainder/file.txt` )
103103 } )
@@ -109,8 +109,8 @@ module.exports = (createCommon, options) => {
109109
110110 const { id : keyId } = await ipfs . key . gen ( 'key-name-remainder' , { type : 'rsa' , size : 2048 } )
111111
112- await ipfs . name . publish ( path , { 'allow-offline' : true } )
113- await ipfs . name . publish ( `/ipns/${ nodeId } ` , { 'allow-offline' : true , key : 'key-name-remainder' } )
112+ await ipfs . name . publish ( path , { allowOffline : true } )
113+ await ipfs . name . publish ( `/ipns/${ nodeId } ` , { allowOffline : true , key : 'key-name-remainder' } )
114114
115115 return expect ( await ipfs . name . resolve ( `/ipns/${ keyId } /remainder/file.txt` , { recursive : true } ) )
116116 . to . eq ( `/ipfs/${ path } /remainder/file.txt` )
@@ -120,7 +120,7 @@ module.exports = (createCommon, options) => {
120120 const publishOptions = {
121121 lifetime : '100ms' ,
122122 ttl : '10s' ,
123- 'allow-offline' : true
123+ allowOffline : true
124124 }
125125
126126 // we add new data instead of re-using fixture to make sure lifetime handling doesn't break
0 commit comments