Skip to content

Conversation

muan
Copy link
Contributor

@muan muan commented Nov 4, 2019

I wanted to resolve #9, so did some digging on the lint failure. It's been a while since we responded to the PR last so I figured I'd take on doing the rest, instead of prompting the author to update their PR. 😬

  • Upgrade Flow to fix the type error, where shadowRoot does not have getElementById. It was added in facebook/flow@72b6397.
  • Add test for shadowRoot context. Before this patch:
FAILED TESTS:
  clipboard-copy element
    shadow DOM context
      ✖ node
        HeadlessChrome 78.0.3904 (Mac OS X 10.14.6)
      AssertionError: expected 'Target in Document' to equal 'Target in shadowRoot'
          at test.js:216:16

cc @jorgecasar

@muan muan requested a review from a team November 4, 2019 22:58
Co-Authored-By: David Graham <dgraham@github.com>
Copy link
Contributor

@keithamus keithamus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good! Nice clear tests 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants