Skip to content

Commit

Permalink
Add test to cover the presence of organization_public_id in dashboard…
Browse files Browse the repository at this point in the history
… config
  • Loading branch information
acelaya authored and marcospri committed Jul 31, 2024
1 parent 215bb5b commit 28dc195
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,24 @@ describe('OrganizationActivity', () => {
});
});

context('when `organization_public_id` is present in config', () => {
beforeEach(() => {
fakeConfig.dashboard.organization_public_id = 'the-org-public-id';
});

it('propagates public_id to API calls', () => {
createComponent();

assert.calledWith(
fakeUseAPIFetch.lastCall,
sinon.match.string,
sinon.match({
public_id: 'the-org-public-id',
}),
);
});
});

it(
'should pass a11y checks',
checkAccessibility({
Expand Down

0 comments on commit 28dc195

Please sign in to comment.