@@ -39,8 +39,8 @@ module.exports = (createCommon, options) => {
39
39
40
40
const { id : keyId } = await ipfs . key . gen ( 'key-name-default' , { type : 'rsa' , size : 2048 } )
41
41
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' } )
44
44
45
45
return expect ( await ipfs . name . resolve ( `/ipns/${ keyId } ` ) )
46
46
. to . eq ( `/ipfs/${ path } ` )
@@ -50,7 +50,7 @@ module.exports = (createCommon, options) => {
50
50
this . timeout ( 20 * 1000 )
51
51
const [ { path } ] = await ipfs . add ( Buffer . from ( 'should resolve a record from cidv1b32' ) )
52
52
const { id : peerId } = await ipfs . id ( )
53
- await ipfs . name . publish ( path , { 'allow-offline' : true } )
53
+ await ipfs . name . publish ( path , { allowOffline : true } )
54
54
55
55
// Represent Peer ID as CIDv1 Base32
56
56
// https://github.com/libp2p/specs/blob/master/RFC/0001-text-peerid-cid.md
@@ -62,7 +62,7 @@ module.exports = (createCommon, options) => {
62
62
63
63
it ( 'should resolve a record recursive === false' , async ( ) => {
64
64
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 } )
66
66
return expect ( await ipfs . name . resolve ( `/ipns/${ nodeId } ` , { recursive : false } ) )
67
67
. to . eq ( `/ipfs/${ path } ` )
68
68
} )
@@ -74,8 +74,8 @@ module.exports = (createCommon, options) => {
74
74
75
75
const { id : keyId } = await ipfs . key . gen ( 'key-name' , { type : 'rsa' , size : 2048 } )
76
76
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' } )
79
79
80
80
return expect ( await ipfs . name . resolve ( `/ipns/${ keyId } ` , { recursive : true } ) )
81
81
. to . eq ( `/ipfs/${ path } ` )
@@ -88,16 +88,16 @@ module.exports = (createCommon, options) => {
88
88
89
89
const { id : keyId } = await ipfs . key . gen ( 'key-name-remainder-default' , { type : 'rsa' , size : 2048 } )
90
90
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' } )
93
93
94
94
return expect ( await ipfs . name . resolve ( `/ipns/${ keyId } /remainder/file.txt` ) )
95
95
. to . eq ( `/ipfs/${ path } /remainder/file.txt` )
96
96
} )
97
97
98
98
it ( 'should resolve a record recursive === false with remainder' , async ( ) => {
99
99
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 } )
101
101
return expect ( await ipfs . name . resolve ( `/ipns/${ nodeId } /remainder/file.txt` , { recursive : false } ) )
102
102
. to . eq ( `/ipfs/${ path } /remainder/file.txt` )
103
103
} )
@@ -109,8 +109,8 @@ module.exports = (createCommon, options) => {
109
109
110
110
const { id : keyId } = await ipfs . key . gen ( 'key-name-remainder' , { type : 'rsa' , size : 2048 } )
111
111
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' } )
114
114
115
115
return expect ( await ipfs . name . resolve ( `/ipns/${ keyId } /remainder/file.txt` , { recursive : true } ) )
116
116
. to . eq ( `/ipfs/${ path } /remainder/file.txt` )
@@ -120,7 +120,7 @@ module.exports = (createCommon, options) => {
120
120
const publishOptions = {
121
121
lifetime : '100ms' ,
122
122
ttl : '10s' ,
123
- 'allow-offline' : true
123
+ allowOffline : true
124
124
}
125
125
126
126
// we add new data instead of re-using fixture to make sure lifetime handling doesn't break
0 commit comments