Skip to content

White space in text nodes should be treated like in HTML #72

@salomvary

Description

@salomvary

Expected this test to pass:

  test('html white space', () => {
    expect(
      <div>{'foo      bar'}</div>,
      'to deeply render as',
      <div>foo bar</div>
    );
  });

Got this failure instead:

    UnexpectedError: 
    expected <div>foo      bar</div> to deeply render as <div>foo bar</div>

    <div>
      foo      bar // foo      bar
                   // foo bar
    </div>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions