@@ -177,7 +177,7 @@ export class CodeSyncResourceDBSpec {
177
177
178
178
@test ( )
179
179
async createDeleteCollection ( ) : Promise < void > {
180
- const currentCollections1 = await this . db . getCollections ( this . userId ) ;
180
+ const currentCollections1 = ( await this . db . getCollections ( this . userId ) ) . map ( ( { id } ) => id ) ;
181
181
expect ( currentCollections1 ) . to . be . empty ;
182
182
183
183
const collections : string [ ] = [ ] ;
@@ -186,20 +186,20 @@ export class CodeSyncResourceDBSpec {
186
186
}
187
187
expect ( collections . length ) . to . be . equal ( 5 ) ;
188
188
189
- const currentCollections2 = await this . db . getCollections ( this . userId ) ;
189
+ const currentCollections2 = ( await this . db . getCollections ( this . userId ) ) . map ( ( { id } ) => id ) ;
190
190
expect ( currentCollections2 . sort ( ) ) . to . deep . equal ( collections . slice ( ) . sort ( ) ) ;
191
191
192
192
await this . db . deleteCollection ( this . userId , collections [ 0 ] , async ( ) => { } ) ;
193
193
await this . db . deleteCollection ( this . userId , collections [ 1 ] , async ( ) => { } ) ;
194
194
collections . shift ( ) ;
195
195
collections . shift ( ) ;
196
196
197
- const currentCollections3 = await this . db . getCollections ( this . userId ) ;
197
+ const currentCollections3 = ( await this . db . getCollections ( this . userId ) ) . map ( ( { id } ) => id ) ;
198
198
expect ( currentCollections3 . sort ( ) ) . to . deep . equal ( collections . slice ( ) . sort ( ) ) ;
199
199
200
200
await this . db . deleteCollection ( this . userId , undefined , async ( ) => { } ) ;
201
201
202
- const currentCollections4 = await this . db . getCollections ( this . userId ) ;
202
+ const currentCollections4 = ( await this . db . getCollections ( this . userId ) ) . map ( ( { id } ) => id ) ;
203
203
expect ( currentCollections4 ) . to . be . empty ;
204
204
}
205
205
0 commit comments