Skip to content

Commit

Permalink
Set comparison ignores order of items, so removed sort method
Browse files Browse the repository at this point in the history
  • Loading branch information
fake-haris committed Nov 14, 2024
1 parent ea6996c commit e989fca
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ export default function ({ getService }: DeploymentAgnosticFtrProviderContext) {
});

expect(
new Set(body.integrations.map((integration: Integration) => integration.name).sort())
).to.eql(new Set(preExistingIntegrations.concat(['synthetics', 'system']).sort()));
new Set(body.integrations.map((integration: Integration) => integration.name))
).to.eql(new Set(preExistingIntegrations.concat(['synthetics', 'system'])));

expect(
body.integrations.find((integration: Integration) => integration.name === 'synthetics')
Expand Down Expand Up @@ -132,8 +132,8 @@ export default function ({ getService }: DeploymentAgnosticFtrProviderContext) {
});

expect(
new Set(body.integrations.map((integration: Integration) => integration.name).sort())
).to.eql(new Set(preExistingIntegrations.concat('my.custom.integration').sort()));
new Set(body.integrations.map((integration: Integration) => integration.name))
).to.eql(new Set(preExistingIntegrations.concat('my.custom.integration')));

expect(
Object.entries(
Expand Down

0 comments on commit e989fca

Please sign in to comment.