Increase unit test coverage for saml.ts to 100%#9131
Conversation
|
Size Report 1Affected ProductsNo changes between base commit (3d44792) and merge commit (663799c).Test Logs |
Size Analysis Report 1Affected ProductsNo changes between base commit (3d44792) and merge commit (663799c).Test Logs |
|
|
||
| it('credentialFromJSON returns SAML credential from valid object', () => { | ||
| const json = { | ||
| providerId: 'saml.provider', |
There was a problem hiding this comment.
is it possible providerId and signInMethod are different? maybe we should use a different string for assertion.
There was a problem hiding this comment.
Hey Liubin,
We have a validation in the SamlAuthCredential.fromJson method to validate that providerId === signInMethod - https://github.com/firebase/firebase-js-sdk/blob/main/packages/auth/src/core/credentials/saml.ts#L95
Hence using the same string.
Discussion
Testing