Skip to content

Commit

Permalink
fix(classification): Code review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
n31 committed Oct 30, 2024
1 parent fdce2c6 commit 0ea6b82
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ describe('features/classification/security-controls/SecurityControls', () => {

test('should render SecurityControls with Integration label when using SHORT controlsFormat and shouldDisplayAppsAsIntegrations is true', () => {
wrapper.setProps({ controlsFormat: SHORT, shouldDisplayAppsAsIntegrations: true });
expect(wrapper.find('SecurityControlsItem').prop('message').id).toBe(
messages.shortSharingDownloadIntegration.id,
expect(wrapper.find('SecurityControlsItem').prop('message').defaultMessage).toBe(
'Sharing, download and integration restrictions apply',
);
});

Expand All @@ -74,7 +74,7 @@ describe('features/classification/security-controls/SecurityControls', () => {
wrapper
.find('SecurityControlsModal')
.prop('modalItems')
.find(item => item.message.id === messages.integrationDownloadAllowlist.id),
.find(item => item.message.defaultMessage === 'Only select integrations are allowed: {appNames}'),
).toBeDefined();
});

Expand All @@ -89,7 +89,7 @@ describe('features/classification/security-controls/SecurityControls', () => {
wrapper.findWhere(
node =>
node.type() === 'SecurityControlsItem' &&
node.prop('message').id === messages.integrationDownloadAllowlist.id,
node.prop('message').defaultMessage === 'Only select integrations are allowed: {appNames}',
),
).toBeDefined();
});
Expand Down

0 comments on commit 0ea6b82

Please sign in to comment.