Skip to content

feat(event): add new history popstate event #433

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 28, 2020
Merged

feat(event): add new history popstate event #433

merged 1 commit into from
Jan 28, 2020

Conversation

bochap
Copy link
Contributor

@bochap bochap commented Jan 28, 2020

Added popstate to events map with respective tests #427

What:
popstate history event is not supported.

Why:
Adding this event will allow the testing of custom router implementations

How:
Added new popstate event applicable on window.

Checklist:

Added popstate to events map with respective tests #427
feat(event): simplify tests
@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 66546ab:

Sandbox Source
peaceful-kalam-mfqlt Configuration

@codecov
Copy link

codecov bot commented Jan 28, 2020

Codecov Report

Merging #433 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #433   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          22     22           
  Lines         374    374           
  Branches       87     87           
=====================================
  Hits          374    374
Impacted Files Coverage Δ
src/events.js 100% <ø> (ø) ⬆️
src/pretty-dom.js 100% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a2c3472...66546ab. Read the comment docs.

Copy link
Member

@kentcdodds kentcdodds left a comment

Choose a reason for hiding this comment

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

Super! Thank you for this :)

@kentcdodds kentcdodds merged commit 90f79ac into testing-library:master Jan 28, 2020
@kentcdodds
Copy link
Member

@all-contributors please add @seetdev for tests and code

@allcontributors
Copy link
Contributor

@kentcdodds

I've put up a pull request to add @seetdev! 🎉

@kentcdodds
Copy link
Member

🎉 This PR is included in version 6.12.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

2 participants