Skip to content

Commit 9ea72e1

Browse files
jasonjohCopilot
andauthored
Update tests/permissions-descriptions.spec.js
Co-authored-by: Copilot <[email protected]>
1 parent e283193 commit 9ea72e1

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

tests/permissions-descriptions.spec.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,9 @@ describe('Permissions descriptions consistency', function() {
3030
const adminDisplayName = permission.adminConsentDisplayName || '';
3131
const consentDisplayName = permission.consentDisplayName || '';
3232

33-
if (adminDisplayName) {
34-
expect(adminDisplayName.endsWith('.')).toBe(false);
35-
}
36-
if (consentDisplayName) {
37-
expect(consentDisplayName.endsWith('.')).toBe(false);
38-
}
33+
[adminDisplayName, consentDisplayName].forEach(displayName => {
34+
expect(displayName.endsWith('.')).toBe(false);
35+
});
3936
});
4037
});
4138
}

0 commit comments

Comments
 (0)