Skip to content

Commit 2d5d30f

Browse files
jdub233Copilot
andauthored
Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 5ded150 commit 2d5d30f

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

src/authorizeRequest/checkUserAccess.test.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)