File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -295,9 +295,11 @@ export class PGlite
295295 } )
296296
297297 const wasmMemory = new WebAssembly . Memory ( {
298- initial : options . initialMemory ? options . initialMemory / ( 64 * 1024 ) : 2048 ,
298+ initial : options . initialMemory
299+ ? options . initialMemory / ( 64 * 1024 )
300+ : 2048 ,
299301 maximum : 32768 ,
300- } ) ;
302+ } )
301303
302304 let emscriptenOpts : Partial < PostgresMod > = {
303305 thisProgram : postgresExePath ,
Original file line number Diff line number Diff line change @@ -653,12 +653,10 @@ await testEsmCjsAndDTC(async (importType) => {
653653
654654 it ( 'initialMemory works' , async ( ) => {
655655 const db = await PGlite . create ( {
656- initialMemory : 512 * 1024 * 1024
656+ initialMemory : 512 * 1024 * 1024 ,
657657 } )
658658
659- const databaseAndRole = await db . exec (
660- `SELECT 1;` ,
661- )
659+ await db . exec ( `SELECT 1;` )
662660 } )
663661 } )
664662} )
You can’t perform that action at this time.
0 commit comments