@@ -66,9 +66,7 @@ module.exports = (repo) => {
66
66
it ( 'does not write an identity block' , async ( ) => {
67
67
const identityBlock = new Block ( identityData , identityCID )
68
68
await repo . blocks . put ( identityBlock )
69
- const cids = await all ( repo . blocks . query ( {
70
- keysOnly : true
71
- } ) )
69
+ const cids = await all ( repo . blocks . queryKeys ( { } ) )
72
70
const rawCID = new CID ( 1 , 'raw' , identityCID . multihash )
73
71
expect ( cids ) . to . not . deep . include ( rawCID )
74
72
} )
@@ -116,9 +114,7 @@ module.exports = (repo) => {
116
114
const blocks = [ new Block ( d , new CID ( 1 , 'raw' , hash ) ) , new Block ( identityData , identityCID ) ]
117
115
const put = await all ( repo . blocks . putMany ( blocks ) )
118
116
expect ( put ) . to . deep . equal ( blocks )
119
- const cids = await all ( repo . blocks . query ( {
120
- keysOnly : true
121
- } ) )
117
+ const cids = await all ( repo . blocks . queryKeys ( { } ) )
122
118
expect ( cids ) . to . deep . include ( new CID ( 1 , 'raw' , hash ) )
123
119
expect ( cids ) . to . not . deep . include ( new CID ( 1 , 'raw' , identityCID . multihash ) )
124
120
} )
@@ -500,9 +496,7 @@ module.exports = (repo) => {
500
496
} )
501
497
502
498
it ( 'returns only keys' , async ( ) => {
503
- const cids = await all ( repo . blocks . query ( {
504
- keysOnly : true
505
- } ) )
499
+ const cids = await all ( repo . blocks . queryKeys ( { } ) )
506
500
507
501
expect ( cids . length ) . to . be . greaterThan ( 0 )
508
502
0 commit comments