Skip to content

Commit

Permalink
docs(tests/container): explain test case
Browse files Browse the repository at this point in the history
  • Loading branch information
freshgum-bubbles committed Oct 23, 2023
1 parent 60af950 commit 655ec4b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/Container.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,8 @@ describe('Container', function () {
it('should immediately set "disposed" to true', () => {
const tempContainer = Container.ofChild(Symbol());

// Make sure the use of asynchronicity does not mean that the .disposed property
// is set at a later point, e.g. when the .disposed promise resolves.
void tempContainer.dispose();
expect(tempContainer.disposed).toBe(true);
});
Expand Down

0 comments on commit 655ec4b

Please sign in to comment.