@@ -63,22 +63,22 @@ describe('checkUserAccess', () => {
6363 } ;
6464 expect ( checkUserAccess ( exampleUserRules , headers ) ) . toBe ( true ) ;
6565 } ) ;
66- } ) ;
6766
68- it ( 'should return false if the userName is only whitespace' , ( ) => {
69- const headers = {
70- Eppn : ' @bu.edu' ,
71- 'Primary-Affiliation' : 'staff' ,
72- Entitlement : [ 'https://iam.bu.edu/entitlements/some-entitlement' ] ,
73- } ;
74- expect ( checkUserAccess ( exampleUserRules , headers ) ) . toBe ( false ) ;
75- } ) ;
67+ it ( 'should return false if the userName is only whitespace' , ( ) => {
68+ const headers = {
69+ Eppn : ' @bu.edu' ,
70+ 'Primary-Affiliation' : 'staff' ,
71+ Entitlement : [ 'https://iam.bu.edu/entitlements/some-entitlement' ] ,
72+ } ;
73+ expect ( checkUserAccess ( exampleUserRules , headers ) ) . toBe ( false ) ;
74+ } ) ;
7675
77- it ( 'should return false if eppn is just the domain' , ( ) => {
78- const headers = {
79- Eppn : '@bu.edu' ,
80- 'Primary-Affiliation' : 'staff' ,
81- Entitlement : [ 'https://iam.bu.edu/entitlements/some-entitlement' ] ,
82- } ;
83- expect ( checkUserAccess ( exampleUserRules , headers ) ) . toBe ( false ) ;
76+ it ( 'should return false if eppn is just the domain' , ( ) => {
77+ const headers = {
78+ Eppn : '@bu.edu' ,
79+ 'Primary-Affiliation' : 'staff' ,
80+ Entitlement : [ 'https://iam.bu.edu/entitlements/some-entitlement' ] ,
81+ } ;
82+ expect ( checkUserAccess ( exampleUserRules , headers ) ) . toBe ( false ) ;
83+ } ) ;
8484} ) ;
0 commit comments