Skip to content

Commit

Permalink
test(ContainerInstance): test defaultContainer
Browse files Browse the repository at this point in the history
Add tests for defaultContainer
to ensure it is both registered
and of the expected type.
  • Loading branch information
freshgum-bubbles committed Jun 20, 2023
1 parent cca195e commit d970fdc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/Container.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -424,4 +424,14 @@ describe('Container', function () {
expect(ContainerRegistry.hasContainer(NAME)).toBe(true);
});
});

describe('Container.defaultContainer', () => {
it('should not be null', () => {
expect(ContainerInstance.defaultContainer).toBeTruthy();
});

it('should be of type ContainerInstance', () => {
expect(ContainerInstance.defaultContainer).toBeInstanceOf(ContainerInstance);
});
});
});

0 comments on commit d970fdc

Please sign in to comment.