@@ -116,15 +116,17 @@ describe('MongoBinary', () => {
116116 // DO NOT INDENT THE TEXT
117117 jest . spyOn ( childProcess , 'spawnSync' ) . mockReturnValue (
118118 // @ts -expect-error Because "Buffer" is missing values from type, but they are not used in code, so its fine
119- Buffer . from ( `db version v4.0.20
119+ {
120+ stdout : Buffer . from ( `db version v4.0.20
120121git version: e2416422da84a0b63cde2397d60b521758b56d1b
121122OpenSSL version: OpenSSL 1.1.1f 31 Mar 2020
122123allocator: tcmalloc
123124modules: none
124125build environment:
125126 distmod: ubuntu1804
126127 distarch: x86_64
127- target_arch: x86_64` )
128+ target_arch: x86_64` ) ,
129+ }
128130 ) ;
129131 process . env [ envName ( ResolveConfigVariables . VERSION ) ] = '4.0.20' ; // set it explicitly to that version to test matching versions
130132 process . env [ envName ( ResolveConfigVariables . SYSTEM_BINARY ) ] = sysBinaryPath ;
@@ -141,15 +143,17 @@ build environment:
141143 // DO NOT INDENT THE TEXT
142144 jest . spyOn ( childProcess , 'spawnSync' ) . mockReturnValue (
143145 // @ts -expect-error Because "Buffer" is missing values from type, but they are not used in code, so its fine
144- Buffer . from ( `db version v4.0.20
146+ {
147+ stdout : Buffer . from ( `db version v4.0.20
145148git version: e2416422da84a0b63cde2397d60b521758b56d1b
146149OpenSSL version: OpenSSL 1.1.1f 31 Mar 2020
147150allocator: tcmalloc
148151modules: none
149152build environment:
150153 distmod: ubuntu1804
151154 distarch: x86_64
152- target_arch: x86_64` )
155+ target_arch: x86_64` ) ,
156+ }
153157 ) ;
154158 process . env [ envName ( ResolveConfigVariables . VERSION ) ] = '4.4.0' ; // set it explicitly to that version to test non-matching versions
155159 process . env [ envName ( ResolveConfigVariables . SYSTEM_BINARY ) ] = sysBinaryPath ;
0 commit comments