Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
yctercero committed Jul 29, 2020
1 parent 60a9058 commit 1447485
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,19 @@ describe('Exception viewer helpers', () => {

expect(formattedEntry).toEqual(expected);
});

test('it formats as expected when "isNested" is "true"', () => {
const payload = getEntryMatchMock();
const formattedEntry = formatEntry({ isNested: true, item: payload });
const expected: FormattedEntry = {
fieldName: 'host.name',
isNested: true,
operator: 'is',
value: 'some host name',
};

expect(formattedEntry).toEqual(expected);
});
});

describe('#getDescriptionListContent', () => {
Expand Down

0 comments on commit 1447485

Please sign in to comment.