File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ const shape = require('./shape')
4
4
const cloneable = require ( './cloneable' )
5
5
6
6
module . exports = function suite ( test , testCommon ) {
7
- test ( 'db has manifest' , function ( t ) {
7
+ test ( 'db has manifest' , async function ( t ) {
8
8
const db = testCommon . factory ( )
9
9
const manifest = db . supports
10
10
@@ -15,15 +15,10 @@ module.exports = function suite (test, testCommon) {
15
15
additionalMethods : Object . assign ( { } , manifest . additionalMethods )
16
16
} )
17
17
18
- db . open ( function ( err ) {
19
- t . ifError ( err , 'no open error' )
20
- t . same ( db . supports , before , 'manifest did not change after open' )
18
+ await db . open ( )
19
+ t . same ( db . supports , before , 'manifest did not change after open' )
21
20
22
- db . close ( function ( err ) {
23
- t . ifError ( err , 'no close error' )
24
- t . same ( db . supports , before , 'manifest did not change after close' )
25
- t . end ( )
26
- } )
27
- } )
21
+ await db . close ( )
22
+ t . same ( db . supports , before , 'manifest did not change after close' )
28
23
} )
29
24
}
You can’t perform that action at this time.
0 commit comments