@@ -50,32 +50,32 @@ describe('backup()', () => {
50
50
backup ( database ) ;
51
51
} , {
52
52
code : 'ERR_INVALID_ARG_TYPE' ,
53
- message : 'The "destination " argument must be a string, Uint8Array, or URL without null bytes.'
53
+ message : 'The "path " argument must be a string, Uint8Array, or URL without null bytes.'
54
54
} ) ;
55
55
56
56
t . assert . throws ( ( ) => {
57
57
backup ( database , { } ) ;
58
58
} , {
59
59
code : 'ERR_INVALID_ARG_TYPE' ,
60
- message : 'The "destination " argument must be a string, Uint8Array, or URL without null bytes.'
60
+ message : 'The "path " argument must be a string, Uint8Array, or URL without null bytes.'
61
61
} ) ;
62
62
} ) ;
63
63
64
- test ( 'throws if the database destination contains null bytes' , ( t ) => {
64
+ test ( 'throws if the database path contains null bytes' , ( t ) => {
65
65
const database = makeSourceDb ( ) ;
66
66
67
67
t . assert . throws ( ( ) => {
68
68
backup ( database , Buffer . from ( 'l\0cation' ) ) ;
69
69
} , {
70
70
code : 'ERR_INVALID_ARG_TYPE' ,
71
- message : 'The "destination " argument must be a string, Uint8Array, or URL without null bytes.'
71
+ message : 'The "path " argument must be a string, Uint8Array, or URL without null bytes.'
72
72
} ) ;
73
73
74
74
t . assert . throws ( ( ) => {
75
75
backup ( database , 'l\0cation' ) ;
76
76
} , {
77
77
code : 'ERR_INVALID_ARG_TYPE' ,
78
- message : 'The "destination " argument must be a string, Uint8Array, or URL without null bytes.'
78
+ message : 'The "path " argument must be a string, Uint8Array, or URL without null bytes.'
79
79
} ) ;
80
80
} ) ;
81
81
@@ -297,7 +297,7 @@ test('backup fails when source db is invalid', async (t) => {
297
297
} ) ;
298
298
} ) ;
299
299
300
- test ( 'backup fails when destination cannot be opened' , async ( t ) => {
300
+ test ( 'backup fails when path cannot be opened' , async ( t ) => {
301
301
const database = makeSourceDb ( ) ;
302
302
303
303
await t . assert . rejects ( async ( ) => {
0 commit comments