Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
camillof authored and julianguyen committed Oct 22, 2024
1 parent 21ff2e0 commit 8bb577b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/app/utils/__tests__/index.spec.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ describe('Utils', () => {
const h1Object = Utils.renderContent(h1HeadingString);
expect(h1Object.type).toEqual('h1');
expect(h1Object.props.id).toEqual('main-heading');
expect(h1Object.props.children[0]).toEqual('THIS IS A HEADING');

expect(h1Object.props.children).toEqual('THIS IS A HEADING');
});

it('should verify that for html strings with vulnerable code, it gets sanitized in object representation', () => {
Expand Down

0 comments on commit 8bb577b

Please sign in to comment.