File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -360,7 +360,7 @@ describe("cli", () => {
360
360
361
361
it ( "should use existing if --reuse-window is set" , async ( ) => {
362
362
args [ "reuse-window" ] = true
363
- await expect ( await shouldOpenInExistingInstance ( args ) ) . toStrictEqual ( undefined )
363
+ await expect ( shouldOpenInExistingInstance ( args ) ) . resolves . toStrictEqual ( undefined )
364
364
365
365
await fs . writeFile ( vscodeIpcPath , "test" )
366
366
await expect ( shouldOpenInExistingInstance ( args ) ) . resolves . toStrictEqual ( "test" )
Original file line number Diff line number Diff line change @@ -110,10 +110,10 @@ describe("SocketProxyProvider", () => {
110
110
provider . stop ( ) // We don't need more proxies.
111
111
112
112
proxy . write ( "server proxy->client" )
113
- const dataFromServerToClient = await ( await getData ( fromServerToClient ) ) . toString ( )
113
+ const dataFromServerToClient = ( await getData ( fromServerToClient ) ) . toString ( )
114
114
expect ( dataFromServerToClient ) . toBe ( "server proxy->client" )
115
115
client . write ( "client->server proxy" )
116
- const dataFromClientToProxy = await ( await getData ( fromClientToProxy ) ) . toString ( )
116
+ const dataFromClientToProxy = ( await getData ( fromClientToProxy ) ) . toString ( )
117
117
expect ( dataFromClientToProxy ) . toBe ( "client->server proxy" )
118
118
expect ( errors ) . toEqual ( 0 )
119
119
} )
You can’t perform that action at this time.
0 commit comments