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

How to check for this condition of login and logout err != null #194

Open
dhyanaswain opened this issue Nov 4, 2019 · 1 comment
Open

Comments

@dhyanaswain
Copy link

How to test the below condition

sp.create_login_request_url(idp, {}, function (err, login_url, request_id) {
if (err != null){
failure(500);
}

Same for the log out function
sp.create_logout_request_url(....)

Its always sending the err = null.

Need help, writing the Jest test cases for the code!

jest

@mcab mcab self-assigned this Feb 3, 2021
@mcab
Copy link
Member

mcab commented Feb 4, 2021

It seems that for test cases, we specify options to define assert_endpoint: https://github.com/Clever/saml2/blob/master/test/saml2.coffee#L1033.

Can you try to do the same?

@mcab mcab removed their assignment Oct 15, 2022
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

No branches or pull requests

2 participants