From b48e63611dd529c1ee27d1ca70f915b6eb9c5db2 Mon Sep 17 00:00:00 2001 From: David Aaron Suddjian Date: Fri, 11 Feb 2022 18:19:12 -0800 Subject: [PATCH] Async assertions must be awaited or returned --- .../packages/superset-ui-switchboard/src/switchboard.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superset-frontend/packages/superset-ui-switchboard/src/switchboard.test.ts b/superset-frontend/packages/superset-ui-switchboard/src/switchboard.test.ts index 859769e0e082b..fb77ab90f8a42 100644 --- a/superset-frontend/packages/superset-ui-switchboard/src/switchboard.test.ts +++ b/superset-frontend/packages/superset-ui-switchboard/src/switchboard.test.ts @@ -267,7 +267,7 @@ describe('comms', () => { }); port2.start(); - expect(ours.get('someMethod')).rejects.toThrowError( + await expect(ours.get('someMethod')).rejects.toThrowError( 'Unexpected response message', ); });