Skip to content

Commit

Permalink
use finally
Browse files Browse the repository at this point in the history
  • Loading branch information
enisdenjo committed Nov 2, 2023
1 parent 88bc5c7 commit 9dee25b
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions packages/graphql-modules/tests/execution-context.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -544,11 +544,14 @@ it('should provide context in nested async execution', async () => {
},
});
resolve();
}).then(() => {
expect(executionContext.getApplicationContext()).toBe('app');
expect(executionContext.getModuleContext('')).toBe('mod');
});
destroy();
})
.then(() => {
expect(executionContext.getApplicationContext()).toBe('app');
expect(executionContext.getModuleContext('')).toBe('mod');
})
.finally(() => {
destroy();
});
});

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

0 comments on commit 9dee25b

Please sign in to comment.