Skip to content
This repository has been archived by the owner on Nov 21, 2023. It is now read-only.

Test fails on CI only due to new lines #15

Open
dotherightthing opened this issue May 11, 2020 · 0 comments
Open

Test fails on CI only due to new lines #15

dotherightthing opened this issue May 11, 2020 · 0 comments
Assignees

Comments

@dotherightthing
Copy link
Owner

/*
// Test fails on CI:
// due to new lines.
$this->assertEquals(
    '<div class="wpdtrt-anchorlinks__section wpdtrt-anchorlinks__anchor" id="heading-1" tabindex="-1"><h2 data-anchorlinks-id="heading-1">Heading 1<a class="wpdtrt-anchorlinks__anchor-link" href="#heading-1"><span aria-label="Anchor" class="wpdtrt-anchorlinks__anchor-icon">#</span></a></h2><p>Text</p></div>',
    trim( $dom->saveHTML( $dom->getElementsByTagName( 'div' )[0] ) ),
    'Expected first div to be a section containing a heading and text'
);
*/
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant