Skip to content

Commit 200734a

Browse files
committed
fixing tests
1 parent cf31f60 commit 200734a

File tree

1 file changed

+7
-9
lines changed
  • x-pack/solutions/security/test/cloud_security_posture_api/routes

1 file changed

+7
-9
lines changed

x-pack/solutions/security/test/cloud_security_posture_api/routes/graph.ts

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -883,17 +883,15 @@ export default function (providerContext: FtrProviderContext) {
883883
`node color mismatched [node: ${node.id}] [actual: ${node.color}]`
884884
);
885885
expect(node.documentsData).to.have.length(2);
886-
expect(node.documentsData).to.contain(
887-
{
886+
expectExpect(node.documentsData).toContainEqual(
887+
expectExpect.objectContaining({
888888
type: 'event',
889-
},
890-
`node documentsData missing event details [node: ${node.id}]`
889+
})
891890
);
892-
expect(node.documentsData).to.contain(
893-
{
891+
expectExpect(node.documentsData).toContainEqual(
892+
expectExpect.objectContaining({
894893
type: 'alert',
895-
},
896-
`node documentsData missing alert details [node: ${node.id}]`
894+
})
897895
);
898896
} else {
899897
expect(node.color).equal(
@@ -906,7 +904,7 @@ export default function (providerContext: FtrProviderContext) {
906904
response.body.edges.forEach((edge: EdgeDataModel) => {
907905
expect(edge).to.have.property('color');
908906
expect(edge.color).equal(
909-
'subdued',
907+
'danger',
910908
`edge color mismatched [edge: ${edge.id}] [actual: ${edge.color}]`
911909
);
912910
expect(edge.type).equal('solid');

0 commit comments

Comments
 (0)