Add unit test for the `supported` function
What does this MR do and why?
The supported
function is used to test if the browser supports the
credential management API.
We simplified the function using optional chaining.
We added unit testing for that function. There was some level of testing
of this function in
spec/frontend/authentication/webauthn/authenticate_spec.js
. However,
this file would probably be deleted soon, when we replace the jQuery
application for a Vue component.
Screenshots or screen recordings
N/A
How to set up and validate locally
N/A
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.