Skip to content

Refactor tests related to subject and sub#505

Merged
ziluvatar merged 1 commit intoauth0:masterfrom
MitMaro:subject-claim-tests
Jul 20, 2018
Merged

Refactor tests related to subject and sub#505
ziluvatar merged 1 commit intoauth0:masterfrom
MitMaro:subject-claim-tests

Conversation

@MitMaro
Copy link
Copy Markdown
Contributor

@MitMaro MitMaro commented Jul 17, 2018

For #492

This change extracts all tests in the existing files related to the subject option and sub claim into a single test file. Several other tests are also added that were missing from the existing files.

I removed all references to "subject" and "sub" from the existing test files that I could find.

There seems to be only minimal validation on the subject claim. The next major version could handle adding validation to this claim.

As always, suggestions or missing tests are welcome!

Coverage Master

=============================== Coverage summary ===============================
Statements   : 97.87% ( 230/235 )
Branches     : 97.55% ( 199/204 )
Functions    : 100% ( 23/23 )
Lines        : 98.28% ( 228/232 )
================================================================================

Coverage Branch

=============================== Coverage summary ===============================
Statements   : 97.87% ( 230/235 )
Branches     : 97.55% ( 199/204 )
Functions    : 100% ( 23/23 )
Lines        : 98.28% ( 228/232 )
================================================================================

This change extracts all tests in the existing files related to the
subject option and sub claim into a single test file. Several other
tests are also added that were missing from the existing files.
@ziluvatar ziluvatar merged commit 5a7fa23 into auth0:master Jul 20, 2018
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

Successfully merging this pull request may close these issues.

2 participants