You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
to as location object - and pathname, search, hash, state
to as function and pathname, search, hash, state
Why Is This Update Needed?
The to property of React Passage's Link accepts a string, object or function which is higher complexity than just working with a url string.
Currently test.js tests are light, and do an incomplete job ensuring that Passage's Link are working correctly by retain all the relevant values pathname, search, hash, state.
Requested Update
Enhance
test.js
-describe('react-passage', () => {})
Provide consistent coverage for:
to
stringto
as location object - andpathname
,search
,hash
,state
to
as function andpathname
,search
,hash
,state
Why Is This Update Needed?
The
to
property of React Passage'sLink
accepts a string, object or function which is higher complexity than just working with a url string.Currently
test.js
tests are light, and do an incomplete job ensuring that Passage'sLink
are working correctly by retain all the relevant valuespathname
,search
,hash
,state
.Are There Examples?
One example of light coverage:
it('matches with a function that returns a location object', () => {})
The incompleteness is missing coverage to ensure
state
is passed through.The text was updated successfully, but these errors were encountered: