Skip to content

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

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>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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