Skip to content

Commit e97352c

Browse files
Fixing test name and adding comments
1 parent e0a62b3 commit e97352c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

x-pack/plugins/security_solution/public/resolver/view/clickthrough.test.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ describe('Resolver, initially no indices', () => {
4040
});
4141
});
4242

43-
it(`should no nodes`, async () => {
43+
it(`should retrieve no process nodes when the indices was an empty array`, async () => {
4444
await expect(
4545
simulator.map(() => ({
4646
processes: simulator.processNodeElements().length,
@@ -52,10 +52,11 @@ describe('Resolver, initially no indices', () => {
5252

5353
describe('Resolver, when indices are used', () => {
5454
beforeEach(async () => {
55+
// awesome_index is checked in the handleNoIndices function
5556
simulator.indices = ['awesome_index'];
5657
});
5758
// Combining assertions here for performance. Unfortunately, Enzyme + jsdom + React is slow.
58-
it(`should have 3 nodes, with the entityID's 'origin', 'firstChild', and 'secondChild'. 'origin' should be selected.`, async () => {
59+
it(`should have 3 nodes, with the entityID's 'origin', 'firstChild', and 'secondChild'. 'origin' should be selected when the simulator has the right indices`, async () => {
5960
await expect(
6061
simulator.map(() => ({
6162
selectedOriginCount: simulator.selectedProcessNode(entityIDs.origin).length,

0 commit comments

Comments
 (0)