@@ -23,7 +23,7 @@ suite('Storage Library', () => {
2323 const storageDir = uniqueStorageDir ( ) ;
2424 await mkdirp ( storageDir ) ;
2525
26- const storage = new Storage ( { path : join ( storageDir , 'storage.db' ) , createPath : true } ) ;
26+ const storage = new Storage ( { path : join ( storageDir , 'storage.db' ) } ) ;
2727
2828 await storage . init ( ) ;
2929
@@ -97,7 +97,7 @@ suite('Storage Library', () => {
9797 const storageDir = uniqueStorageDir ( ) ;
9898 await mkdirp ( storageDir ) ;
9999
100- let storage = new Storage ( { path : join ( storageDir , 'storage.db' ) , createPath : true } ) ;
100+ let storage = new Storage ( { path : join ( storageDir , 'storage.db' ) } ) ;
101101 await storage . init ( ) ;
102102
103103 const set1Promise = storage . set ( 'foo' , 'bar' ) ;
@@ -113,15 +113,15 @@ suite('Storage Library', () => {
113113
114114 equal ( setPromiseResolved , true ) ;
115115
116- storage = new Storage ( { path : join ( storageDir , 'storage.db' ) , createPath : false } ) ;
116+ storage = new Storage ( { path : join ( storageDir , 'storage.db' ) } ) ;
117117 await storage . init ( ) ;
118118
119119 equal ( storage . get ( 'foo' ) , 'bar' ) ;
120120 equal ( storage . get ( 'bar' ) , 'foo' ) ;
121121
122122 await storage . close ( ) ;
123123
124- storage = new Storage ( { path : join ( storageDir , 'storage.db' ) , createPath : false } ) ;
124+ storage = new Storage ( { path : join ( storageDir , 'storage.db' ) } ) ;
125125 await storage . init ( ) ;
126126
127127 const delete1Promise = storage . delete ( 'foo' ) ;
@@ -137,7 +137,7 @@ suite('Storage Library', () => {
137137
138138 equal ( deletePromiseResolved , true ) ;
139139
140- storage = new Storage ( { path : join ( storageDir , 'storage.db' ) , createPath : false } ) ;
140+ storage = new Storage ( { path : join ( storageDir , 'storage.db' ) } ) ;
141141 await storage . init ( ) ;
142142
143143 ok ( ! storage . get ( 'foo' ) ) ;
@@ -151,7 +151,7 @@ suite('Storage Library', () => {
151151 const storageDir = uniqueStorageDir ( ) ;
152152 await mkdirp ( storageDir ) ;
153153
154- let storage = new Storage ( { path : join ( storageDir , 'storage.db' ) , createPath : true } ) ;
154+ let storage = new Storage ( { path : join ( storageDir , 'storage.db' ) } ) ;
155155 await storage . init ( ) ;
156156
157157 let changes = new Set < string > ( ) ;
@@ -206,7 +206,7 @@ suite('SQLite Storage Library', () => {
206206 }
207207
208208 async function testDBBasics ( path , errorLogger ?: ( error ) => void ) {
209- const options : IStorageOptions = { path, createPath : true } ;
209+ const options : IStorageOptions = { path } ;
210210 if ( errorLogger ) {
211211 options . logging = {
212212 errorLogger
@@ -305,8 +305,7 @@ suite('SQLite Storage Library', () => {
305305 await mkdirp ( storageDir ) ;
306306
307307 let storage = new SQLiteStorageImpl ( {
308- path : join ( storageDir , 'storage.db' ) ,
309- createPath : true
308+ path : join ( storageDir , 'storage.db' )
310309 } ) ;
311310
312311 const items1 = new Map < string , string > ( ) ;
@@ -382,8 +381,7 @@ suite('SQLite Storage Library', () => {
382381 await storage . close ( ) ;
383382
384383 storage = new SQLiteStorageImpl ( {
385- path : join ( storageDir , 'storage.db' ) ,
386- createPath : true
384+ path : join ( storageDir , 'storage.db' )
387385 } ) ;
388386
389387 storedItems = await storage . getItems ( ) ;
@@ -400,8 +398,7 @@ suite('SQLite Storage Library', () => {
400398 await mkdirp ( storageDir ) ;
401399
402400 let storage = new SQLiteStorageImpl ( {
403- path : join ( storageDir , 'storage.db' ) ,
404- createPath : true
401+ path : join ( storageDir , 'storage.db' )
405402 } ) ;
406403
407404 const items = new Map < string , string > ( ) ;
@@ -454,7 +451,7 @@ suite('SQLite Storage Library', () => {
454451 const storageDir = uniqueStorageDir ( ) ;
455452 await mkdirp ( storageDir ) ;
456453
457- const storage = new Storage ( { path : join ( storageDir , 'storage.db' ) , createPath : true } ) ;
454+ const storage = new Storage ( { path : join ( storageDir , 'storage.db' ) } ) ;
458455
459456 await storage . init ( ) ;
460457
0 commit comments