Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7078 +/- ##
==========================================
+ Coverage 92.58% 92.61% +0.02%
==========================================
Files 289 289
Lines 24009 24007 -2
Branches 5088 5085 -3
==========================================
+ Hits 22228 22233 +5
+ Misses 1781 1774 -7 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
HashHash
HashHash
| test('invalidate hash, only one value', () => { | ||
| window.location.hash = '#24'; | ||
|
|
||
| expect(hash._isValidHash(hash._getCurrentHash())).toBeFalsy(); |
There was a problem hiding this comment.
I know this was not changed as part of this PR, but if there was a better way to test these internal methods without calling them explicitly, it would've been better...
There was a problem hiding this comment.
I don't know how to do this.
Given that we really want these to be correct, I think not using the public API is better here.
Also, the methods are not marked as private, so technically they are public api ^^
|
Sorry for spamming... I hope this is not too much... |
* qee more tests * more tests * remove useless test * simplify a few more things * fix fmt * Update src/ui/hash.test.ts * Update src/ui/hash.test.ts * Apply suggestion from @CommanderStorm
Launch Checklist
I think the actual changes in #7073 are getting hard to review.
Lets pull the testcase changes out so that the actual changes are more obvious.