Skip to content
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

fix(__buffer__): fix how __buffer__ is exposed #70

Merged
merged 1 commit into from
Mar 9, 2023

Conversation

jamischarles
Copy link
Contributor

In my last PR #69 there's a bug that results in __buffer.events to become stale after the first time flush() is called.

This doesn't affect any of the core functionality, just how tests are run that use this getter.

This commit fixes that, and adds tests to verify flush() clears the buffer.

In my last PR there's a bug that results in `__buffer.events` to become
stale after the first time `flush()` is called.

This commit fixes that, and adds tests to verify `flush()` clears the
buffer.
@jamischarles
Copy link
Contributor Author

@wsbrunson @westeezy Quick follow-up fix

@codecov-commenter
Copy link

codecov-commenter commented Mar 8, 2023

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.82%. Comparing base (71d9afc) to head (0322afc).
Report is 21 commits behind head on main.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #70      +/-   ##
==========================================
+ Coverage   73.46%   73.82%   +0.35%     
==========================================
  Files           5        5              
  Lines         147      149       +2     
==========================================
+ Hits          108      110       +2     
  Misses         39       39              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@westeezy westeezy merged commit c09cc0b into krakenjs:main Mar 9, 2023
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