Skip to content

Commit 9dee25b

Browse files
committed
use finally
1 parent 88bc5c7 commit 9dee25b

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

packages/graphql-modules/tests/execution-context.spec.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -544,11 +544,14 @@ it('should provide context in nested async execution', async () => {
544544
},
545545
});
546546
resolve();
547-
}).then(() => {
548-
expect(executionContext.getApplicationContext()).toBe('app');
549-
expect(executionContext.getModuleContext('')).toBe('mod');
550-
});
551-
destroy();
547+
})
548+
.then(() => {
549+
expect(executionContext.getApplicationContext()).toBe('app');
550+
expect(executionContext.getModuleContext('')).toBe('mod');
551+
})
552+
.finally(() => {
553+
destroy();
554+
});
552555
});
553556

554557
it('should provide nested contexts', async () => {

0 commit comments

Comments
 (0)